1
0
mirror of https://gitlab.com/JKANetwork/jka-toolkit.git synced 2026-02-17 02:21:31 +01:00
This commit is contained in:
JoseluCross
2016-05-22 22:53:36 +02:00
parent 5ab07dc6bc
commit e43523c473
3 changed files with 8 additions and 8 deletions

Binary file not shown.

View File

@@ -11,7 +11,7 @@ function decompress() {
format=$(echo $1 | cut -f1 -d".")
format2=$(echo $1 | cut -f2 -d".")
fi
if [ $format = "tar" ];then
if [ $format = "tar" ];then
if [ -z $format2 ];then
tar xvf $2
if [ $? -eq 0 ];then
@@ -77,7 +77,7 @@ function decompress() {
echo "Format $format unknown"
fi
}
version="0.2.1"
version="0.2.2"
if [ -z $1 ];then
echo "No option specified, use jkazip -h"
elif [ $1 = "-h" ];then
@@ -89,7 +89,7 @@ elif [ $1 = "-h" ];then
echo " -h, show help box and exit"
echo " -v, show version"
echo ""
echo " The order must do \"jkazip -d [-f format] <file or directory>\" or \"jkazip -c <format> <file or directory\""
echo " The order must be \"jkazip -d [-f format] <file or directory>\" or \"jkazip -c <format> <file or directory\""
echo ""
echo " Examples"
echo " jkazip -d -f \"tar.gz\" file.txt.tar.gz"
@@ -124,12 +124,12 @@ elif [ $1 = "-d" ];then
echo "Directory $4 will be decompressed"
elif [ -f $4 ];then
echo "File $4 will be decompressed"
else
else
echo "$4 no sush a file or directory"
exit
fi
decompress $3 $2
fi
decompress $3 $4
fi
elif [ $1 = "-c" ];then
if [ -z $3 ];then
echo "No file or directory specified"
@@ -209,4 +209,4 @@ elif [ $1 = "-c" ];then
fi
else
echo "Unknown option"
fi
fi

View File

@@ -1,6 +1,6 @@
# Maintainer: JKA Network (JoseluCross, Kprkpr, Yukialba) <contacto@jkanetwork.com>
pkgname=jka-toolkit
pkgver=0.2.1
pkgver=0.2.2
pkgrel=1
pkgdesc="Set of scripts to optimize the daily work in linux shell"
arch=('any')