]> mj.ucw.cz Git - pciutils.git/commitdiff
update-pciids: Be more friendly to people who tweak the settings
authorMartin Mares <mj@ucw.cz>
Sun, 24 Oct 2010 08:17:55 +0000 (10:17 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 24 Oct 2010 08:17:55 +0000 (10:17 +0200)
If somebody changes PCI_COMPRESSED_IDS to 0 manually, honor this
setting.

Suggested by Guido Trentalancia.

update-pciids.sh

index feef7498148209f2e6d01948cd9ddaf54ac2de05..5e771090ac001fb92b816d5d00eacdab6b83d524 100755 (executable)
@@ -15,7 +15,7 @@ if ! touch ${DEST} >/dev/null 2>&1 ; then
        exit 1
 fi
 
-if [ -n "$PCI_COMPRESSED_IDS" ] ; then
+if [ "$PCI_COMPRESSED_IDS" -eq 1 ] ; then
        DECOMP="cat"
        SRC="$SRC.gz"
        GREP=zgrep