fix(bash): bash errors on windows (#5406)

This commit is contained in:
Yehonal 2021-04-23 14:35:41 +02:00 committed by GitHub
parent c95d1f72a8
commit 970d371442
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 3 deletions

View File

@ -1,7 +1,8 @@
#!/usr/bin/env bash
set -e
[ -z "$WITH_ERRORS" ] && set -e
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$CUR_PATH/apps/installer/main.sh"

View File

@ -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"

View File

@ -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() {

View File

@ -1 +1 @@
deno
deno*