mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-12-02 02:25:41 +00:00
13 lines
308 B
GDScript
13 lines
308 B
GDScript
extends Button
|
|
|
|
func _ready():
|
|
self.pressed.connect(self._button_pressed)
|
|
|
|
func _button_pressed():
|
|
var output = []
|
|
# var exit_code = OS.execute("ls", ["-l", "/"], output, true)
|
|
var exit_code = OS.execute("bash", ["touch_external.sh"], output)
|
|
print("exit code: ", exit_code)
|
|
print("output: ",
|
|
output)
|