handle backslash paths in check_go_path
License: MIT Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
Dominic Della Valle committed
Jul 20, 2018 at 08:35 UTC
7a3566b0070700ab4ac5c30dc3e348d6cf649218
1 file changed
+2
-2
bin/check_go_path
+2
-2
@@ -14,7 +14,7 @@ else
14
PATHSEP=':'
15
fi
16
17
-while read -d "$PATHSEP" p; do
17
+while read -r -d "$PATHSEP" p; do
18
if ! cd "$p/src/$PKG" 2>/dev/null; then
19
continue
20
fi
@@ -23,7 +23,7 @@ while read -d "$PATHSEP" p; do
23
exit 0
24
fi
25
cd "$DIR"
26
-done <<< "$GOPATH:"
26
+done <<< "$GOPATH$PATHSEP"
27
28
echo "go-ipfs must be built from within your \$GOPATH directory."
29
echo "expected within '$GOPATH' but got '$DIR'"