mirror of
https://gitlab.com/JKANetwork/jka-toolkit.git
synced 2026-02-17 10:31:30 +01:00
update
This commit is contained in:
Binary file not shown.
@@ -11,7 +11,7 @@ function decompress() {
|
|||||||
format=$(echo $1 | cut -f1 -d".")
|
format=$(echo $1 | cut -f1 -d".")
|
||||||
format2=$(echo $1 | cut -f2 -d".")
|
format2=$(echo $1 | cut -f2 -d".")
|
||||||
fi
|
fi
|
||||||
if [ $format = "tar" ];then
|
if [ $format = "tar" ];then
|
||||||
if [ -z $format2 ];then
|
if [ -z $format2 ];then
|
||||||
tar xvf $2
|
tar xvf $2
|
||||||
if [ $? -eq 0 ];then
|
if [ $? -eq 0 ];then
|
||||||
@@ -77,7 +77,7 @@ function decompress() {
|
|||||||
echo "Format $format unknown"
|
echo "Format $format unknown"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
version="0.2.1"
|
version="0.2.2"
|
||||||
if [ -z $1 ];then
|
if [ -z $1 ];then
|
||||||
echo "No option specified, use jkazip -h"
|
echo "No option specified, use jkazip -h"
|
||||||
elif [ $1 = "-h" ];then
|
elif [ $1 = "-h" ];then
|
||||||
@@ -89,7 +89,7 @@ elif [ $1 = "-h" ];then
|
|||||||
echo " -h, show help box and exit"
|
echo " -h, show help box and exit"
|
||||||
echo " -v, show version"
|
echo " -v, show version"
|
||||||
echo ""
|
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 ""
|
||||||
echo " Examples"
|
echo " Examples"
|
||||||
echo " jkazip -d -f \"tar.gz\" file.txt.tar.gz"
|
echo " jkazip -d -f \"tar.gz\" file.txt.tar.gz"
|
||||||
@@ -124,12 +124,12 @@ elif [ $1 = "-d" ];then
|
|||||||
echo "Directory $4 will be decompressed"
|
echo "Directory $4 will be decompressed"
|
||||||
elif [ -f $4 ];then
|
elif [ -f $4 ];then
|
||||||
echo "File $4 will be decompressed"
|
echo "File $4 will be decompressed"
|
||||||
else
|
else
|
||||||
echo "$4 no sush a file or directory"
|
echo "$4 no sush a file or directory"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
decompress $3 $2
|
decompress $3 $4
|
||||||
fi
|
fi
|
||||||
elif [ $1 = "-c" ];then
|
elif [ $1 = "-c" ];then
|
||||||
if [ -z $3 ];then
|
if [ -z $3 ];then
|
||||||
echo "No file or directory specified"
|
echo "No file or directory specified"
|
||||||
@@ -209,4 +209,4 @@ elif [ $1 = "-c" ];then
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Unknown option"
|
echo "Unknown option"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Maintainer: JKA Network (JoseluCross, Kprkpr, Yukialba) <contacto@jkanetwork.com>
|
# Maintainer: JKA Network (JoseluCross, Kprkpr, Yukialba) <contacto@jkanetwork.com>
|
||||||
pkgname=jka-toolkit
|
pkgname=jka-toolkit
|
||||||
pkgver=0.2.1
|
pkgver=0.2.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Set of scripts to optimize the daily work in linux shell"
|
pkgdesc="Set of scripts to optimize the daily work in linux shell"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
|||||||
Reference in New Issue
Block a user