mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
handle backslash paths in check_go_path
License: MIT Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
This commit is contained in:
parent
f90fffbdc8
commit
7a3566b007
@ -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'"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user