Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 3e10ea7

Browse files
committed
dep: Use only POSIX-compatible sh syntax
Fixes #1938.
1 parent 35c32f0 commit 3e10ea7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ findGoBinDirectory() {
6868
EFFECTIVE_GOPATH=$(go env GOPATH)
6969
# CYGWIN: Convert Windows-style path into sh-compatible style paths
7070
if [ "$OS_CYGWIN" = "1" ]; then
71-
EFFECTIVE_GOPATH=$(cygpath $EFFECTIVE_GOPATH)
71+
EFFECTIVE_GOPATH=$(cygpath "$EFFECTIVE_GOPATH")
7272
fi
7373
if [ -z "$EFFECTIVE_GOPATH" ]; then
7474
echo "Installation could not determine your \$GOPATH."
@@ -135,7 +135,7 @@ fi
135135
echo "Will install into $INSTALL_DIRECTORY"
136136
137137
# assemble expected release artifact name
138-
if [[ "${ARCH}" == "ppc64" || "${ARCH}" == "ppc64le" ]] && [[ "${OS}" != "linux" ]]; then
138+
if [ "${OS}" != "linux" ] && { [ "${ARCH}" = "ppc64" ] || [ "${ARCH}" = "ppc64le" ];}; then
139139
# ppc64 and ppc64le are only supported on Linux.
140140
echo "${OS}-${ARCH} is not supported by this instalation script"
141141
else

0 commit comments

Comments
 (0)