Skip to content

Commit

Permalink
fix: update uname_os from shlib in install.sh (golangci#1944)
Browse files Browse the repository at this point in the history
uname_os function in install.sh behaved incorrectly in certain
Windows environment.
This issue was fixed in client9/shlib#23
  • Loading branch information
WKBae committed Dec 1, 2021
1 parent d0aead4 commit bcc531d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,10 @@ log_crit() {
uname_os() {
os=$(uname -s | tr '[:upper:]' '[:lower:]')
case "$os" in
cygwin_nt*) os="windows" ;;
msys*) os="windows" ;;
mingw*) os="windows" ;;
msys_nt*) os="windows" ;;
cygwin*) os="windows" ;;
win*) os="windows" ;;
esac
echo "$os"
}
Expand Down

0 comments on commit bcc531d

Please sign in to comment.