1
0
mirror of https://gitlab.com/JKANetwork/jka-toolkit.git synced 2026-03-19 17:02:04 +01:00
This commit is contained in:
kprkpr
2016-05-24 22:14:54 +02:00
parent 846cdbd2f8
commit 2ff398b445
4 changed files with 13 additions and 13 deletions

View File

@@ -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