Skip to content

Commit

Permalink
handle backslash paths in check_go_path
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Dominic Della Valle <[email protected]>
  • Loading branch information
djdv committed Jul 20, 2018
1 parent f90fffb commit 7a3566b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/check_go_path
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'"
Expand Down

0 comments on commit 7a3566b

Please sign in to comment.