1
0
mirror of https://gitlab.com/JKANetwork/jka-toolkit.git synced 2026-02-14 17:11:32 +01:00

Repair jkazip, zip compresion have recursive mode

This commit is contained in:
JoseluCross
2016-09-16 11:28:11 +02:00
parent 31995d4bdb
commit 43e2b9176e

View File

@@ -39,7 +39,7 @@ function msg2() {
echo
}
version="2.3.0"
version="2.3.1"
if [ -z "$1" ];then
echo "$(gettext "No option specified, use jkazip -h")" > /dev/stderr
elif [ "$1" = "-h" ];then
@@ -122,7 +122,7 @@ elif [ "$1" = "-c" ];then
### Funcion nueva
for compfile in "$@"; do
if [[ "$compfile" != "$1" && "$compfile" != "$2" ]];then
if [ ! -d "$compfile" -a ! -f "$compfile" ];then
if [[ ! -d "$compfile" && ! -f "$compfile" ]];then
printf -- "$(gettext "%s no such file or directory")" "$compfile"
echo
#exit
@@ -154,7 +154,7 @@ elif [ "$1" = "-c" ];then
msg "$files" "$salida"
;;
"zip")
zip "$salida" $files
zip -r "$salida" $files
msg "$files" "$salida"
;;
"gz" | "lz")