add support for archlinux package managers

pull/124/head
wind2008hxy 2020-09-21 16:11:06 +08:00 committed by GitHub
parent cbcaf9c5c1
commit aa6e6fb260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,9 @@ identify_the_operating_system_and_architecture() {
elif [[ "$(command -v zypper)" ]]; then
PACKAGE_MANAGEMENT_INSTALL='zypper install'
PACKAGE_MANAGEMENT_REMOVE='zypper remove'
elif [[ "$(command -v pacman)" ]]; then
PACKAGE_MANAGEMENT_INSTALL='pacman -S'
PACKAGE_MANAGEMENT_REMOVE='pacman -R'
else
echo "error: The script does not support the package manager in this operating system."
exit 1