mirror of
https://gitlab.com/JKANetwork/jka-toolkit.git
synced 2026-03-19 17:02:04 +01:00
fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user