aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"