mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 09:39:51 +00:00
fix(bsd): silence 'uname -o' error when not supported
This commit is contained in:
@@ -63,10 +63,11 @@ __webi_main() {
|
||||
export WEBI_URL
|
||||
set -e
|
||||
|
||||
my_uname_o="$(uname -o 2> /dev/null || echo '')"
|
||||
my_libc=''
|
||||
if ldd /bin/ls 2> /dev/null | grep -q 'musl' 2> /dev/null; then
|
||||
my_libc='musl'
|
||||
elif uname -o | grep -q 'GNU' || uname -s | grep -q 'Linux'; then
|
||||
elif echo "${my_uname_o}" | grep -q 'GNU' || uname -s | grep -q 'Linux'; then
|
||||
my_libc='gnu'
|
||||
else
|
||||
my_libc='libc'
|
||||
|
||||
Reference in New Issue
Block a user