1
0
mirror of https://gitlab.com/JKANetwork/jka-toolkit.git synced 2026-02-21 12:23:46 +01:00

Add lzip support, necessary repair tranlation

This commit is contained in:
JoseluCross
2016-06-07 23:42:26 +02:00
parent faa4df9f22
commit 67de7e669c

View File

@@ -42,6 +42,18 @@ function decompress() {
printf -- $msg_de
echo
fi
elif [ $format2 = "lz" ];then
tar cvf $2 --lzip
if [ $? -eq 0 ];then
printf -- $msg_de
echo
fi
fi
elif [ $format = "tlz" ];then
tar cvf $2 --lzip
if [ $? -eq 0 ];then
printf -- $msg_de
echo
fi
elif [ $format = "tbz2" ];then
tar xvjf $2
@@ -50,7 +62,7 @@ function decompress() {
echo
fi
elif [ $format = "tgz" ];then
tar xvjf $2
tar xvzf $2
if [ $? -eq 0 ];then
printf -- $msg_de
echo
@@ -115,7 +127,7 @@ elif [ $1 = "-h" ];then
echo "$(gettext " jkazip -d file.7z")"
echo "$(gettext " jkazip -c \"tar.xz\" directory")"
echo ""
echo "$(gettext " Supported formats: tar, gzip, bzip2, xzip, 7z, zip and rar")"
echo "$(gettext " Supported formats: tar, gzip, bzip2, xzip, lzip, 7z, zip and rar")"
echo "$(gettext " Only one file or directory (some formats don't support directories), for more options use the each program individualy")"
echo ""
elif [ $1 = "-v" ];then
@@ -197,6 +209,18 @@ elif [ $1 = "-c" ];then
printf -- $msg_co
echo
fi
elif [ $2 = "tar.xz" ] 2> /dev/null ;then
tar cvf $3.tar.lz --lzip $3
if [ $? -eq 0 ];then
printf -- $msg_co
echo
fi
elif [ $2 = "tlz" ] 2> /dev/null ;then
tar cvf $3.tlz --lzip $3
if [ $? -eq 0 ];then
printf -- $msg_co
echo
fi
elif [ $2 = "tbz2" ] 2> /dev/null ;then
tar cvjf $3.tbz2 $3
if [ $? -eq 0 ];then
@@ -234,7 +258,13 @@ elif [ $1 = "-c" ];then
echo
fi
elif [ $2 = "bz2" -o $2 = "bzip2" ] 2> /dev/null ;then
bzip2 -k $3
bzip2 -9k $3
if [ $? -eq 0 ];then
printf -- $msg_co
echo
fi
elif [ $2 = "lz" -o $2 = "lzip" ] 2> /dev/null ;then
lzip -9k $3
if [ $? -eq 0 ];then
printf -- $msg_co
echo