diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-08-23 19:13:35 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-08-23 19:13:35 +0300 |
commit | f56867064771d9a3560a2c2310d9703be34d594f (patch) | |
tree | 5138c1012bf5dad81466995ea00649229d8e33d1 /install.sh | |
parent | f2ab5bede258894e32f91e5ca6f1458a14f3d3ef (diff) | |
download | arching-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-x | install.sh | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |