echo " koffe --pacs=Prog1,Prog2 --> starts koffe and creates"
echo " koffe --pacs=Prog1,Prog2 --> starts koffe and creates"
echo " an iso with the programs Prog1 and Prog2"
echo " an iso with the programs Prog1 and Prog2"
echo " IMPORTANT: Separate the progs with commas"
echo " IMPORTANT: Separate the progs with commas"
@ -62,6 +86,16 @@ then
optdep=1
optdep=1
pactree_command="pactree -suo "
pactree_command="pactree -suo "
fi
fi
if [[ $argument == "-v" ]];
then
verbose=1
pacout=/dev/stdout
clearcomm="echo"
wgetargs=""
quiet_flag=""
verbose_flag="-v"
fi
done
done
fi
fi
if [ $(whoami) != root ];
if [ $(whoami) != root ];
@ -87,7 +121,9 @@ fi
if [ $(whoami) == root ];
if [ $(whoami) == root ];
then
then
#updating the database is required for pacman to resolve the latest links to packages
#updating the database is required for pacman to resolve the latest links to packages
pacman -Suy
echo "Running 'pacman -Syu'"
pacman -Suy > $pacoutput
clear
mkdir /tmp/koffe/
mkdir /tmp/koffe/
mkdir /tmp/koffe/l/
mkdir /tmp/koffe/l/
mkdir /tmp/koffe/n/
mkdir /tmp/koffe/n/
@ -108,11 +144,13 @@ then
prog=$(whiptail --inputbox "Please enter all the programs to be included in the installer separated by a space, you can also include package groups like gnome or xorg or AUR packages" 0 0 4 3>&1 1>&2 2>&3 3>&-)
prog=$(whiptail --inputbox "Please enter all the programs to be included in the installer separated by a space, you can also include package groups like gnome or xorg or AUR packages" 0 0 4 3>&1 1>&2 2>&3 3>&-)