deps: update
This commit is contained in:
parent
fbf81c199c
commit
ba84aa8066
2 changed files with 8 additions and 4 deletions
|
|
@ -375,7 +375,7 @@ ensure_goarch() {
|
|||
}
|
||||
|
||||
ensure_os() {
|
||||
if [ -n "${OS-}" ]; then
|
||||
if [ -n "${_OS-}" ]; then
|
||||
return
|
||||
fi
|
||||
uname=$(uname)
|
||||
|
|
@ -383,9 +383,11 @@ ensure_os() {
|
|||
Linux) OS=linux;;
|
||||
Darwin) OS=macos;;
|
||||
FreeBSD) OS=freebsd;;
|
||||
CYGWIN_NT*|MINGW32_NT*) OS=windows;;
|
||||
MINGW32_NT*) OS=windows;;
|
||||
*) OS=$uname;;
|
||||
esac
|
||||
# We cannot use $OS to check as $OS is defined in MinGW terminals by default.
|
||||
_OS=1
|
||||
}
|
||||
|
||||
ensure_arch() {
|
||||
|
|
|
|||
|
|
@ -511,7 +511,7 @@ ensure_goarch() {
|
|||
}
|
||||
|
||||
ensure_os() {
|
||||
if [ -n "${OS-}" ]; then
|
||||
if [ -n "${_OS-}" ]; then
|
||||
return
|
||||
fi
|
||||
uname=$(uname)
|
||||
|
|
@ -519,9 +519,11 @@ ensure_os() {
|
|||
Linux) OS=linux;;
|
||||
Darwin) OS=macos;;
|
||||
FreeBSD) OS=freebsd;;
|
||||
CYGWIN_NT*|MINGW32_NT*) OS=windows;;
|
||||
MINGW32_NT*) OS=windows;;
|
||||
*) OS=$uname;;
|
||||
esac
|
||||
# We cannot use $OS to check as $OS is defined in MinGW terminals by default.
|
||||
_OS=1
|
||||
}
|
||||
|
||||
ensure_arch() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue