diff options
author | Yehonal <yehonal.azeroth@gmail.com> | 2021-04-23 14:35:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 14:35:41 +0200 |
commit | 970d371442b450782f3fcc4c34e1afe0f848672d (patch) | |
tree | 8fe89e414f5f39210a5e74e56cb84639344a4ed1 /apps | |
parent | c95d1f72a879b9b0c430431325a9d3b92d46604b (diff) |
fix(bash): bash errors on windows (#5406)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/bash_shared/defines.sh | 5 | ||||
-rw-r--r-- | apps/bash_shared/deno.sh | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/apps/bash_shared/defines.sh b/apps/bash_shared/defines.sh index ed70cac1d5..ed5f3733c9 100644 --- a/apps/bash_shared/defines.sh +++ b/apps/bash_shared/defines.sh @@ -14,6 +14,11 @@ else AC_PATH_ROOT=$(readlink -f "$AC_PATH_APPS/../") fi +case $AC_PATH_ROOT in + /*) AC_PATH_ROOT=$AC_PATH_ROOT;; + *) AC_PATH_ROOT=$PWD/$AC_PATH_ROOT;; +esac + AC_PATH_CONF="$AC_PATH_ROOT/conf" AC_PATH_MODULES="$AC_PATH_ROOT/modules" diff --git a/apps/bash_shared/deno.sh b/apps/bash_shared/deno.sh index 9403615fc1..68086acf51 100644 --- a/apps/bash_shared/deno.sh +++ b/apps/bash_shared/deno.sh @@ -14,7 +14,8 @@ function denoInstall() { } function denoCmd() { - (cd "$AC_PATH_ROOT" ; ./deps/deno/bin/deno "$@") + [[ "$OSTYPE" = "msys" ]] && DENOEXEC="./deps/deno/bin/deno.exe" || DENOEXEC="./deps/deno/bin/deno" + (cd "$AC_PATH_ROOT" ; $DENOEXEC "$@") } function denoRunFile() { |