Skip to content

Commit

Permalink
Make shmft happy
Browse files Browse the repository at this point in the history
  • Loading branch information
pjeby committed Mar 12, 2020
1 parent c9e33dc commit 5756f68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gimme
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5756f68

Please sign in to comment.