提交 7a3566b0 作者: Dominic Della Valle

handle backslash paths in check_go_path

License: MIT
Signed-off-by: 's avatarDominic Della Valle <ddvpublic@gmail.com>
上级 f90fffbd
...@@ -14,7 +14,7 @@ else ...@@ -14,7 +14,7 @@ else
PATHSEP=':' PATHSEP=':'
fi fi
while read -d "$PATHSEP" p; do while read -r -d "$PATHSEP" p; do
if ! cd "$p/src/$PKG" 2>/dev/null; then if ! cd "$p/src/$PKG" 2>/dev/null; then
continue continue
fi fi
...@@ -23,7 +23,7 @@ while read -d "$PATHSEP" p; do ...@@ -23,7 +23,7 @@ while read -d "$PATHSEP" p; do
exit 0 exit 0
fi fi
cd "$DIR" cd "$DIR"
done <<< "$GOPATH:" done <<< "$GOPATH$PATHSEP"
echo "go-ipfs must be built from within your \$GOPATH directory." echo "go-ipfs must be built from within your \$GOPATH directory."
echo "expected within '$GOPATH' but got '$DIR'" echo "expected within '$GOPATH' but got '$DIR'"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论