Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
f90fffbd
Commit
f90fffbd
authored
Jul 19, 2018
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix path sep on windows in check_go_path
License: MIT Signed-off-by:
Steven Allen
<
steven@stebalien.com
>
parent
24832881
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
bin/check_go_path
bin/check_go_path
+8
-1
No files found.
bin/check_go_path
View file @
f90fffbd
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment