wok rev 2125
xarchive: fix tar.bz2 handler for busybox (fix typo)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 01 10:41:34 2009 +0000 (2009-02-01) |
parents | b538edb05596 |
children | 14a7a851672f |
files | xarchive/stuff/slitaz-wrap.sh |
line diff
1.1 --- a/xarchive/stuff/slitaz-wrap.sh Sun Feb 01 10:59:06 2009 +0100 1.2 +++ b/xarchive/stuff/slitaz-wrap.sh Sun Feb 01 10:41:34 2009 +0000 1.3 @@ -146,7 +146,7 @@ 1.4 action=$1 1.5 shift 1.6 tardir="$(dirname "$archive")" 1.7 - [ $(expr "$lc_archive" : ".*\."$BZIP2_EXTS"$") -gt ] && ! which bzip2 && return 1.8 + [ $(expr "$lc_archive" : ".*\."$BZIP2_EXTS"$") -gt 0 ] && ! which bzip2 && return 1.9 for ext in $TAR_EXTS $GZIP_EXTS $BZIP2_EXTS $COMPRESS_EXTS $LZMA_EXTS; do 1.10 if [ $(expr "$lc_archive" : ".*\."$ext"$") -gt 0 ]; then 1.11 if [ "$action" = "new_archive" ]; then