提交 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
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'"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论