]> mj.ucw.cz Git - pciutils.git/blobdiff - update-pciids.sh
compat/getopt.c: Fixed a typo in declaration of getopt_long()
[pciutils.git] / update-pciids.sh
index 52a3d7e1099850f332f518f8104d8847faa96133..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
@@ -33,7 +33,7 @@ if which curl >/dev/null 2>&1 ; then
        DL="curl -o $DEST.new $SRC"
     ${quiet} && DL="$DL -s -S"
 elif which wget >/dev/null 2>&1 ; then
-       DL="wget -O $DEST.new $SRC"
+       DL="wget --no-timestamping -O $DEST.new $SRC"
        ${quiet} && DL="$DL -q"
 elif which lynx >/dev/null 2>&1 ; then
        DL="eval lynx -source $SRC >$DEST.new"