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() {
|
ensure_os() {
|
||||||
if [ -n "${OS-}" ]; then
|
if [ -n "${_OS-}" ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
uname=$(uname)
|
uname=$(uname)
|
||||||
|
|
@ -383,9 +383,11 @@ ensure_os() {
|
||||||
Linux) OS=linux;;
|
Linux) OS=linux;;
|
||||||
Darwin) OS=macos;;
|
Darwin) OS=macos;;
|
||||||
FreeBSD) OS=freebsd;;
|
FreeBSD) OS=freebsd;;
|
||||||
CYGWIN_NT*|MINGW32_NT*) OS=windows;;
|
MINGW32_NT*) OS=windows;;
|
||||||
*) OS=$uname;;
|
*) OS=$uname;;
|
||||||
esac
|
esac
|
||||||
|
# We cannot use $OS to check as $OS is defined in MinGW terminals by default.
|
||||||
|
_OS=1
|
||||||
}
|
}
|
||||||
|
|
||||||
ensure_arch() {
|
ensure_arch() {
|
||||||
|
|
|
||||||
|
|
@ -511,7 +511,7 @@ ensure_goarch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
ensure_os() {
|
ensure_os() {
|
||||||
if [ -n "${OS-}" ]; then
|
if [ -n "${_OS-}" ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
uname=$(uname)
|
uname=$(uname)
|
||||||
|
|
@ -519,9 +519,11 @@ ensure_os() {
|
||||||
Linux) OS=linux;;
|
Linux) OS=linux;;
|
||||||
Darwin) OS=macos;;
|
Darwin) OS=macos;;
|
||||||
FreeBSD) OS=freebsd;;
|
FreeBSD) OS=freebsd;;
|
||||||
CYGWIN_NT*|MINGW32_NT*) OS=windows;;
|
MINGW32_NT*) OS=windows;;
|
||||||
*) OS=$uname;;
|
*) OS=$uname;;
|
||||||
esac
|
esac
|
||||||
|
# We cannot use $OS to check as $OS is defined in MinGW terminals by default.
|
||||||
|
_OS=1
|
||||||
}
|
}
|
||||||
|
|
||||||
ensure_arch() {
|
ensure_arch() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue