xz support for tar handler

This commit is contained in:
Pierre ROUDIER 2013-06-27 21:36:23 +02:00 committed by intrigeri
parent b8f717d224
commit 625d1424ca
2 changed files with 6 additions and 1 deletions

View File

@ -25,7 +25,8 @@ tar_wizard() {
"none" "do not filter trough" off \
"compress" "filter trough compress" off \
"gzip" "filter trough gzip" off \
"bzip" "filter trough bzip" on
"bzip" "filter trough bzip" on \
"xz" "filter trough xz" off
[ $? = 1 ] && return;
result="$REPLY"
tar_compress="compress = $REPLY "

View File

@ -48,6 +48,10 @@ case $compress in
compress_option="-j"
EXTENSION="tar.bz2"
;;
"xz")
compress_option="-J"
EXTENSION="tar.xz"
;;
"none")
compress_option=""
;;