Remove superfluous double quotes

Device nodes are always comprised of alphanumeric characters so
there's no need to quote them. That being said, where appropriate,
use curly braces if the variable doesn't terminate the string -
technically, this isn't necessary as the character which follows
is a dot ('.'), which isn't a legal character in variable names so
there's no ambiguity but it makes the variable "stand out" at the
very least.
merge-requests/375/head
Raf Czlonka 2020-03-25 20:05:04 +00:00
rodzic d24a5171c2
commit 2c9a411b12
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -9,10 +9,10 @@ case $DEVCLASS in
ugen*)
BUSNAME=$(usbdevs -vv | egrep "Controller|$DEVNAME\$" | grep -B 1 "$DEVNAME\$" | awk -F'[ :]' '/^Controller/ { print $2 }')
echo $BUSNAME > /var/run/${DEVNAME}.bus
chown _cups:_saned /dev/"$DEVNAME".* &&
chmod 660 /dev/"$DEVNAME".*
chown _cups:_saned /dev/"$BUSNAME" &&
chmod 660 /dev/"$BUSNAME"
chown _cups:_saned /dev/${DEVNAME}.* &&
chmod 660 /dev/${DEVNAME}.*
chown _cups:_saned /dev/$BUSNAME &&
chmod 660 /dev/$BUSNAME
;;
esac
;;