mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 04:55:41 +01: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
|
||||
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/.*=//')
|
||||
if [ -s "$SHFILE" -a "$REMOTE_VERSION" != "$SCRIPT_VERSION" ]; then
|
||||
if [ -s "$SHFILE" ] && [ "$REMOTE_VERSION" != "$SCRIPT_VERSION" ]; then
|
||||
if [[ -n $DIALOG ]]
|
||||
then
|
||||
OVERWRITE=
|
||||
|
@ -100,7 +100,7 @@ update() {
|
|||
}
|
||||
|
||||
cleanup() {
|
||||
if [ -n "$TEMPDIR" -a "$KEEP_FILES" != "yes" ]; then
|
||||
if [ -n "$TEMPDIR" ] && [ "$KEEP_FILES" != "yes" ]; then
|
||||
rm -rf "$TEMPDIR" 2>/dev/null
|
||||
fi
|
||||
test -n "$KEEP_OUTPUT" || rm -f "$NFILE"
|
||||
|
|
Loading…
Reference in a new issue