diff options
Diffstat (limited to 'tests/cantrbry.sh.in')
-rwxr-xr-x | tests/cantrbry.sh.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/cantrbry.sh.in b/tests/cantrbry.sh.in index d3ab459..2466959 100755 --- a/tests/cantrbry.sh.in +++ b/tests/cantrbry.sh.in @@ -10,8 +10,9 @@ if [ ! -f "$TAR2SQFS" -a -f "${TAR2SQFS}.exe" ]; then TAR2SQFS="${TAR2SQFS}.exe" fi -COMPRESSORS=$("$TAR2SQFS" --help | tr -d '\015' |\ - awk '/Available compressors:/,EOF' | sed -n '/\t/p') +COMPRESSORS=$("$TAR2SQFS" --help | grep $'\t' | sed 's/ (default)//' | \ + tr -d '\011' | sort | uniq | sed '/uncompressed/d' | \ + sed '/bzip2/d') for size in 4k 8k 16k 32k 64k 128k 256k 512k 1M; do for cmp in $COMPRESSORS; do |