aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-08-23 19:13:35 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-08-23 19:13:35 +0300
commitf56867064771d9a3560a2c2310d9703be34d594f (patch)
tree5138c1012bf5dad81466995ea00649229d8e33d1 /install.sh
parentf2ab5bede258894e32f91e5ca6f1458a14f3d3ef (diff)
downloadarching-kaos-tools-f56867064771d9a3560a2c2310d9703be34d594f.tar.gz
arching-kaos-tools-f56867064771d9a3560a2c2310d9703be34d594f.tar.bz2
arching-kaos-tools-f56867064771d9a3560a2c2310d9703be34d594f.zip
Preparing for dynamic package manager arguments
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index 21ed837..b434cef 100755
--- a/install.sh
+++ b/install.sh
@@ -31,6 +31,8 @@ printf "\b\b starting!!!"
sleep 1
printf "\n"
packageManager=""
+installCommand=""
+dontAskFlag=""
checkPkgManager(){
printf "Searching for package manager..."
which dnf 2> /dev/null 1>&2
@@ -38,12 +40,16 @@ checkPkgManager(){
then
printf "\tFound DNF\n"
packageManager="$(which dnf)"
+ installCommand="install"
+ dontAskFlag="-y"
fi
which apt 2> /dev/null 1>&2
if [ $? == 0 ]
then
printf "\tFound APT\n"
packageManager="$(which apt)"
+ installCommand="install"
+ dontAskFlag="-y"
fi
if [ "$packageManager" == "" ]
then