Skip to content

Commit c933373

Browse files
WKBaeldez
authored andcommitted
fix: update uname_os from shlib in install.sh (golangci#1944)
uname_os function in install.sh behaved incorrectly in certain Windows environment. This issue was fixed in client9/shlib#23
1 parent 5d9896a commit c933373

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,10 @@ log_crit() {
194194
uname_os() {
195195
os=$(uname -s | tr '[:upper:]' '[:lower:]')
196196
case "$os" in
197-
cygwin_nt*) os="windows" ;;
197+
msys*) os="windows" ;;
198198
mingw*) os="windows" ;;
199-
msys_nt*) os="windows" ;;
199+
cygwin*) os="windows" ;;
200+
win*) os="windows" ;;
200201
esac
201202
echo "$os"
202203
}

0 commit comments

Comments
 (0)