mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-12-04 19:07:00 +00:00
Add support for alpine Linux apk package manager
This commit is contained in:
parent
7e8a3e392d
commit
e60ed53a3c
@ -141,6 +141,8 @@ sudo_package_update () {
|
||||
sudo port selfupdate
|
||||
elif [ "$PACKAGE_MANAGER" == 'brew' ]; then
|
||||
brew update
|
||||
elif [ "$PACKAGE_MANAGER" == 'apk' ]; then
|
||||
true
|
||||
else
|
||||
error "Unknown package manager: $PACKAGE_MANAGER"
|
||||
fi
|
||||
@ -173,6 +175,7 @@ sudo_package () {
|
||||
elif [ "$PACKAGE_MANAGER" == 'brew' ]; then
|
||||
# shellcheck disable=2086,2048
|
||||
brew install $*
|
||||
elif [ "$PACKAGE_MANAGER" == 'apk' ]; then
|
||||
# shellcheck disable=2086,2048
|
||||
apk add $*
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user