diff --git a/jka-toolkit.tar.gz b/jka-toolkit.tar.gz index c72d2e4..2912d53 100644 Binary files a/jka-toolkit.tar.gz and b/jka-toolkit.tar.gz differ diff --git a/jka-toolkit/apw b/jka-toolkit/apw index cf6727d..a8b0253 100755 --- a/jka-toolkit/apw +++ b/jka-toolkit/apw @@ -15,6 +15,14 @@ fi #This option is for make if case insensitive shopt -s nocasematch +#Reading packages to install/remove.. (The rest of $) , it has to be done before the option echo, logically +packages=$2 +for (( i=3; i<=$#; i++ )) +do + valtmp=$(echo $* | cut -f$i -d" ") + packages="$packages $valtmp" +done + #echo for every option case "$1" in *h*) @@ -61,14 +69,6 @@ fi #Knowing the SO with facter SO=$(facter osfamily) -#Reading packages to install/remove.. (The rest of $) -packages=$2 -for (( i=3; i<=$#; i++ )) -do - valtmp=$(echo $* | cut -f$i -d" ") - packages="$packages $valtmp" -done - #Check if is dnf in RedHat, or apt in Debian, new tools if [[ $SO = "RedHat" && ! -f /usr/bin/dnf ]];then yum install dnf diff --git a/pkgbuild/.SRCINFO b/pkgbuild/.SRCINFO index 8e47c6c..fcfb936 100644 --- a/pkgbuild/.SRCINFO +++ b/pkgbuild/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = jka-toolkit pkgdesc = Set of scripts to optimize the daily work in linux shell (jkazip and apw) - pkgver = 0.2.4 - pkgrel = 1 + pkgver = 0.2.5 + pkgrel = 2 url = http://proyecto.jkanetwork.com install = jka-toolkit.install arch = any @@ -15,7 +15,7 @@ pkgbase = jka-toolkit provides = apw options = !emptydirs source = https://gitlab.com/JKANetwork/jka-toolkit/raw/master/jka-toolkit.tar.gz - md5sums = 530beded245bba22227860edd52bd6b7 + md5sums = 2f2d776a4201f0628cae8c0ea0e12d22 pkgname = jka-toolkit diff --git a/pkgbuild/PKGBUILD b/pkgbuild/PKGBUILD index 215b277..c761526 100644 --- a/pkgbuild/PKGBUILD +++ b/pkgbuild/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: JKA Network (JoseluCross, Kprkpr, Yukialba) pkgname=jka-toolkit pkgver=0.2.5 -pkgrel=1 +pkgrel=2 pkgdesc="Set of scripts to optimize the daily work in linux shell (jkazip and apw)" arch=('any') url="http://proyecto.jkanetwork.com" @@ -11,7 +11,7 @@ provides=('jkazip' 'apw') options=(!emptydirs) install=$pkgname.install source=(https://gitlab.com/JKANetwork/jka-toolkit/raw/master/jka-toolkit.tar.gz) -md5sums=('530beded245bba22227860edd52bd6b7') +md5sums=('2f2d776a4201f0628cae8c0ea0e12d22') package() { cd "$srcdir/$pkgname"