diff options
Diffstat (limited to 'scripts/rpm2cpio.sh')
-rwxr-xr-x | scripts/rpm2cpio.sh | 8 |
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` | |||
27 | EXTRACTOR="dd if=$pkg ibs=$o skip=1" | 27 | EXTRACTOR="dd if=$pkg ibs=$o skip=1" |
28 | 28 | ||
29 | COMPRESSION=`($EXTRACTOR |file -) 2>/dev/null` | 29 | COMPRESSION=`($EXTRACTOR |file -) 2>/dev/null` |
30 | if echo $COMPRESSION |grep -q gzip; then | 30 | if echo $COMPRESSION |grep -iq gzip; then |
31 | DECOMPRESSOR=gunzip | 31 | DECOMPRESSOR=gunzip |
32 | elif echo $COMPRESSION |grep -q bzip2; then | 32 | elif echo $COMPRESSION |grep -iq bzip2; then |
33 | DECOMPRESSOR=bunzip2 | 33 | DECOMPRESSOR=bunzip2 |
34 | elif echo $COMPRESSION |grep -q xz; then | 34 | elif echo $COMPRESSION |grep -iq xz; then |
35 | DECOMPRESSOR=unxz | 35 | DECOMPRESSOR=unxz |
36 | elif echo $COMPRESSION |grep -q cpio; then | 36 | elif echo $COMPRESSION |grep -iq cpio; then |
37 | DECOMPRESSOR=cat | 37 | DECOMPRESSOR=cat |
38 | else | 38 | else |
39 | # Most versions of file don't support LZMA, therefore we assume | 39 | # Most versions of file don't support LZMA, therefore we assume |