Fixes for the new shell mechanism on Windows

This commit is contained in:
blinry 2021-02-23 17:12:23 +01:00
parent 53c249d059
commit 1b7bb246d1
2 changed files with 15 additions and 10 deletions
scenes

View file

@ -44,7 +44,7 @@ func start_remote_shell():
target_file.open(target_filename, File.WRITE)
target_file.store_string(script_content)
target_file.close()
helpers.exec_async(_perl_executable(), [target_filename])
helpers.exec_async(_perl_executable(), [target_filename, _bash_executable()])
func _perl_executable():
if OS.get_name() == "Windows":
@ -52,6 +52,12 @@ func _perl_executable():
else:
return "perl"
func _bash_executable():
if OS.get_name() == "Windows":
return "dependencies/windows/git/usr/bin/bash.exe"
else:
return "bash"
func shell_received(text):
print(text)