From 7a3566b0070700ab4ac5c30dc3e348d6cf649218 Mon Sep 17 00:00:00 2001 From: Dominic Della Valle Date: Fri, 20 Jul 2018 08:35:25 -0400 Subject: [PATCH] handle backslash paths in check_go_path License: MIT Signed-off-by: Dominic Della Valle --- bin/check_go_path | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'"