Add missing quotes in the grep line.

merge-requests/1/head
Julien BLACHE 2005-03-03 13:47:39 +00:00
rodzic 207c751982
commit 13f51314cb
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -1,3 +1,6 @@
2005-03-03 Julien Blache <jb@jblache.org>
* tools/hotplug-ng/libsane.hotplug: add missing quote in the grep line.
2005-03-02 Julien Blache <jb@jblache.org>
* tools/hotplug-ng/libsane.hotplug: allow for several spaces
between fields in the db file.

Wyświetl plik

@ -10,7 +10,7 @@ fi
DEVVID=$(printf %4s $(echo $PRODUCT | cut -d'/' -f1) | tr ' ' 0)
DEVPID=$(printf %4s $(echo $PRODUCT | cut -d'/' -f2) | tr ' ' 0)
DEVCONF=$(grep -i ^0x$DEVVID[[:space:]]\+0x$DEVPID /etc/sane.d/hotplug/*.db 2> /dev/null)
DEVCONF=$(grep -i "^0x$DEVVID[[:space:]]\+0x$DEVPID" /etc/sane.d/hotplug/*.db 2> /dev/null)
if [ $? != 0 ]; then
exit 0