提交 f90fffbd 作者: Steven Allen

fix path sep on windows in check_go_path

License: MIT
Signed-off-by: 's avatarSteven Allen <steven@stebalien.com>
上级 24832881
......@@ -7,7 +7,14 @@ PKG="$1"
DIR="$(pwd -P)"
GOPATH="$(go env GOPATH)"
while read -d ':' p; do
# The path separator is ; on windows.
if [ "$(go env GOOS)" = "windows" ]; then
PATHSEP=';'
else
PATHSEP=':'
fi
while read -d "$PATHSEP" p; do
if ! cd "$p/src/$PKG" 2>/dev/null; then
continue
fi
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论