From 327b6e8a1660e1c937b7987fa31f972af393521b Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 22 Jul 2023 23:36:11 +0200 Subject: update-pciids: Add support for xz compression --- update-pciids.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update-pciids.sh b/update-pciids.sh index 929f6af..3263339 100755 --- a/update-pciids.sh +++ b/update-pciids.sh @@ -20,6 +20,9 @@ if [ "$PCI_COMPRESSED_IDS" = 1 ] ; then DECOMP="cat" SRC="$SRC.gz" GREP=zgrep +elif command -v xz >/dev/null 2>&1 ; then + DECOMP="xz -d" + SRC="$SRC.xz" elif command -v bzip2 >/dev/null 2>&1 ; then DECOMP="bzip2 -d" SRC="$SRC.bz2" -- cgit 1.2.3-korg