Support Alpine Linux

pull/1/head
Dct Mei 2020-04-10 21:03:03 +08:00
parent 021de50532
commit 08559e320d
No known key found for this signature in database
GPG Key ID: 50BF8B712DCAD7EA
1 changed files with 4 additions and 0 deletions

View File

@ -78,6 +78,10 @@ if [[ "$(uname)" == 'Linux' ]]; then
PACKAGE_MANAGEMENT_UPDATE='zypper refresh'
PACKAGE_MANAGEMENT_INSTALL='zypper install'
PACKAGE_MANAGEMENT_REMOVE='zypper remove'
elif [[ "$(command -v apk)" ]]; then
PACKAGE_MANAGEMENT_UPDATE='apk update'
PACKAGE_MANAGEMENT_INSTALL='apk add'
PACKAGE_MANAGEMENT_REMOVE='apk del'
else
echo "error: The script does not support the package manager in this operating system."
exit 1