kopia lustrzana https://gitlab.com/sane-project/backends
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
rodzic
d24a5171c2
commit
2c9a411b12
|
@ -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
|
||||
;;
|
||||
|
|
Ładowanie…
Reference in New Issue