From f56867064771d9a3560a2c2310d9703be34d594f Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 23 Aug 2023 19:13:35 +0300 Subject: Preparing for dynamic package manager arguments --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3