change '-o' in a test command to || test

this syntax functions locally
This commit is contained in:
wileyhy 2023-04-28 16:53:49 -07:00 committed by GitHub
parent ca503e3519
commit f8d380b4f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ REQUIRES="mktemp grep pgrep awk date uname cat sort dmesg amixer alsactl"
#
update() {
test -z "$WGET" -o ! -x "$WGET" && return
test -z "$WGET" || test ! -x "$WGET" && return
SHFILE=$(mktemp -t alsa-info.XXXXXXXXXX) || exit 1
wget -O $SHFILE "https://www.alsa-project.org/alsa-info.sh" >/dev/null 2>&1