diff --git a/bin/check_go_path b/bin/check_go_path index 38ecb3937..33567ce00 100755 --- a/bin/check_go_path +++ b/bin/check_go_path @@ -14,7 +14,7 @@ else PATHSEP=':' fi -while read -d "$PATHSEP" p; do +while read -r -d "$PATHSEP" p; do if ! cd "$p/src/$PKG" 2>/dev/null; then continue fi @@ -23,7 +23,7 @@ while read -d "$PATHSEP" p; do exit 0 fi cd "$DIR" -done <<< "$GOPATH:" +done <<< "$GOPATH$PATHSEP" echo "go-ipfs must be built from within your \$GOPATH directory." echo "expected within '$GOPATH' but got '$DIR'"