From 4d704573c7fb9e3ffebf4b9495cd1dd850c7e8f0 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 1 Sep 2023 10:48:52 +0300 Subject: Added support for apk package manager --- install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'install.sh') 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" -- cgit v1.2.3