mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-20 16:20:18 +01:00
parent
2250b9b473
commit
3a42869653
1 changed files with 2 additions and 1 deletions
|
@ -48,11 +48,12 @@ func run_async_thread(shell_command):
|
||||||
|
|
||||||
var env = {}
|
var env = {}
|
||||||
env["HOME"] = game.tmp_prefix
|
env["HOME"] = game.tmp_prefix
|
||||||
env["PATH"] = game.tmp_prefix+":/usr/bin:/bin:/mingw64/bin/"
|
|
||||||
|
|
||||||
var hacky_command = ""
|
var hacky_command = ""
|
||||||
for variable in env:
|
for variable in env:
|
||||||
hacky_command += "export %s='%s';" % [variable, env[variable]]
|
hacky_command += "export %s='%s';" % [variable, env[variable]]
|
||||||
|
|
||||||
|
hacky_command += "export PATH=\'"+game.tmp_prefix+":'\"$PATH\";"
|
||||||
hacky_command += "cd '%s' || exit 1;" % _cwd
|
hacky_command += "cd '%s' || exit 1;" % _cwd
|
||||||
hacky_command += command
|
hacky_command += command
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue