deps: update

This commit is contained in:
Anmol Sethi 2022-12-06 02:04:58 -08:00
parent fbf81c199c
commit ba84aa8066
No known key found for this signature in database
GPG key ID: 8CEF1878FF10ADEB
2 changed files with 8 additions and 4 deletions

View file

@ -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() {

View file

@ -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() {