aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-09-01 10:48:52 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-09-01 10:48:52 +0300
commit4d704573c7fb9e3ffebf4b9495cd1dd850c7e8f0 (patch)
tree7480659fcc318a5108449ccd840cbde346d1d42c
parentea857d594dc7a446d6edf86e37ce2085dbbcc693 (diff)
downloadarching-kaos-tools-4d704573c7fb9e3ffebf4b9495cd1dd850c7e8f0.tar.gz
arching-kaos-tools-4d704573c7fb9e3ffebf4b9495cd1dd850c7e8f0.tar.bz2
arching-kaos-tools-4d704573c7fb9e3ffebf4b9495cd1dd850c7e8f0.zip
Added support for apk package manager
-rwxr-xr-xinstall.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/install.sh b/install.sh
index ba4bd75..de787c8 100755
--- a/install.sh
+++ b/install.sh
@@ -67,6 +67,14 @@ checkPkgManager(){
installCommand="-S"
dontAskFlag="--noconfirm"
fi
+ which apk 2> /dev/null 1>&2
+ if [ $? == 0 ]
+ then
+ printf "\tFound APK\n"
+ packageManager="$(which apk)"
+ installCommand="add"
+ dontAskFlag="-q"
+ fi
if [ "$packageManager" == "" ]
then
printf "Could not find package manager\n"