Commit f90fffbd authored by Steven Allen's avatar Steven Allen

fix path sep on windows in check_go_path

License: MIT
Signed-off-by: default avatarSteven Allen <steven@stebalien.com>
parent 24832881
...@@ -7,7 +7,14 @@ PKG="$1" ...@@ -7,7 +7,14 @@ PKG="$1"
DIR="$(pwd -P)" DIR="$(pwd -P)"
GOPATH="$(go env GOPATH)" 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 if ! cd "$p/src/$PKG" 2>/dev/null; then
continue continue
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment