mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-09-20 01:59:57 +02:00
in two compound [
's, replace '-a' with '] && ['
Per shellcheck warnings.
This commit is contained in:
parent
ca503e3519
commit
064f17df2f
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ update() {
|
||||||
SHFILE=$(mktemp -t alsa-info.XXXXXXXXXX) || exit 1
|
SHFILE=$(mktemp -t alsa-info.XXXXXXXXXX) || exit 1
|
||||||
wget -O $SHFILE "https://www.alsa-project.org/alsa-info.sh" >/dev/null 2>&1
|
wget -O $SHFILE "https://www.alsa-project.org/alsa-info.sh" >/dev/null 2>&1
|
||||||
REMOTE_VERSION=$(grep SCRIPT_VERSION $SHFILE | head -n1 | sed 's/.*=//')
|
REMOTE_VERSION=$(grep SCRIPT_VERSION $SHFILE | head -n1 | sed 's/.*=//')
|
||||||
if [ -s "$SHFILE" -a "$REMOTE_VERSION" != "$SCRIPT_VERSION" ]; then
|
if [ -s "$SHFILE" ] && [ "$REMOTE_VERSION" != "$SCRIPT_VERSION" ]; then
|
||||||
if [[ -n $DIALOG ]]
|
if [[ -n $DIALOG ]]
|
||||||
then
|
then
|
||||||
OVERWRITE=
|
OVERWRITE=
|
||||||
|
@ -100,7 +100,7 @@ update() {
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
if [ -n "$TEMPDIR" -a "$KEEP_FILES" != "yes" ]; then
|
if [ -n "$TEMPDIR" ] && [ "$KEEP_FILES" != "yes" ]; then
|
||||||
rm -rf "$TEMPDIR" 2>/dev/null
|
rm -rf "$TEMPDIR" 2>/dev/null
|
||||||
fi
|
fi
|
||||||
test -n "$KEEP_OUTPUT" || rm -f "$NFILE"
|
test -n "$KEEP_OUTPUT" || rm -f "$NFILE"
|
||||||
|
|
Loading…
Reference in a new issue