summaryrefslogtreecommitdiffstats
path: root/scripts/rpm2cpio.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rpm2cpio.sh')
-rwxr-xr-xscripts/rpm2cpio.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/rpm2cpio.sh b/scripts/rpm2cpio.sh
index 426fd77bb7..5df8c0f705 100755
--- a/scripts/rpm2cpio.sh
+++ b/scripts/rpm2cpio.sh
@@ -27,13 +27,13 @@ o=`expr $o + $hdrsize`
27EXTRACTOR="dd if=$pkg ibs=$o skip=1" 27EXTRACTOR="dd if=$pkg ibs=$o skip=1"
28 28
29COMPRESSION=`($EXTRACTOR |file -) 2>/dev/null` 29COMPRESSION=`($EXTRACTOR |file -) 2>/dev/null`
30if echo $COMPRESSION |grep -q gzip; then 30if echo $COMPRESSION |grep -iq gzip; then
31 DECOMPRESSOR=gunzip 31 DECOMPRESSOR=gunzip
32elif echo $COMPRESSION |grep -q bzip2; then 32elif echo $COMPRESSION |grep -iq bzip2; then
33 DECOMPRESSOR=bunzip2 33 DECOMPRESSOR=bunzip2
34elif echo $COMPRESSION |grep -q xz; then 34elif echo $COMPRESSION |grep -iq xz; then
35 DECOMPRESSOR=unxz 35 DECOMPRESSOR=unxz
36elif echo $COMPRESSION |grep -q cpio; then 36elif echo $COMPRESSION |grep -iq cpio; then
37 DECOMPRESSOR=cat 37 DECOMPRESSOR=cat
38else 38else
39 # Most versions of file don't support LZMA, therefore we assume 39 # Most versions of file don't support LZMA, therefore we assume