consistent in lib as well

This commit is contained in:
Daniel Hansson 2023-10-05 15:32:50 +02:00 committed by GitHub
parent 3aa88d0c12
commit 242f37d7b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
lib.sh
View File

@ -159,6 +159,7 @@ install_linux_package() {
# osInfo[/etc/SuSE-release]=zypp
# osInfo[/etc/debian_version]=apt-get
# osInfo[/etc/alpine-release]=apk
print_text_in_color "$IGreen" Installing "${1}"...
if [ -x "$(command -v apt-get)" ]
then
sudo apt-get install "${1}" -y
@ -181,7 +182,7 @@ install_linux_package() {
then
sudo emerge -av "${1}"
else
echo "FAILED TO INSTALL ${1}! Package manager not found: Your OS is currently unsupported."
print_text_in_color "$IRed" "FAILED TO INSTALL ${1}! Package manager not found: Your OS is currently unsupported."
fi
}
@ -208,7 +209,7 @@ purge_linux_package() {
then
sudo emerge -Cv "${1}"
else
echo "FAILED TO REMOVE ${1}! Package manager not found: Your OS is currently unsupported."
print_text_in_color "$IRed" "FAILED TO REMOVE ${1}! Package manager not found: Your OS is currently unsupported."
fi
}