Simplify - use test(1) and && instead of 'if ... then ... fi"

merge-requests/375/head
Raf Czlonka 2020-03-25 02:25:50 +00:00
rodzic a129b7767d
commit 0b978ea742
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -12,9 +12,8 @@ case $DEVCLASS in
rm -f /var/run/${DEVNAME}.bus
# probably our scanner
chgrp wheel /dev/"$DEVNAME".*
if [ x$BUSNAME != x ] ; then
test -n "$BUSNAME" &&
chown root:wheel /dev/"$BUSNAME"
fi
;;
esac
;;