mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-05 05:02:02 +02:00
Fixes for the new shell mechanism on Windows
This commit is contained in:
parent
53c249d059
commit
1b7bb246d1
2 changed files with 15 additions and 10 deletions
scenes
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue