RetroDECK/tools/configurator/Button2.gd

11 lines
294 B
GDScript3
Raw Normal View History

2023-09-23 16:24:55 +00:00
extends Button
func _ready():
self.pressed.connect(self._button_pressed)
func _button_pressed():
var output := [] #[] is shared, Array isn't (maybe fixed in 4.1)
var exit_code := OS.execute("bash", ["touch_external.sh"], output)
2023-09-23 16:24:55 +00:00
print("exit code: ", exit_code)
print("output: ", output)