diff --git a/gimme b/gimme index 10c36dc..226eb9b 100755 --- a/gimme +++ b/gimme @@ -355,8 +355,7 @@ EOF # _env "dir" _env() { - if [[ -d "${1}/bin" && -f "${1}/bin/go.exe" && "$GIMME_HOSTOS" = windows ]] && - command -v cygpath &>/dev/null + if [[ -d "${1}/bin" && -f "${1}/bin/go.exe" && "$GIMME_HOSTOS" == windows ]] && command -v cygpath &>/dev/null then # .exe's don't come in from the .zip with the executable flag set chmod +x "${1}/bin/"*.exe @@ -405,9 +404,10 @@ _env() { # _env_alias "dir" "env-file" _env_alias() { - if [[ "$GIMME_HOSTOS" = windows ]] && command -v cygpath &>/dev/null; then + if [[ "$GIMME_HOSTOS" == windows ]] && command -v cygpath &>/dev/null; then # $1 is a cygwin/msys path, but GOROOT needs a Windows path - local -x GOROOT; GOROOT="$(cygpath -wa "$1")" + local -x GOROOT + GOROOT="$(cygpath -wa "$1")" else local -x GOROOT="$1" fi