Skip to content

Commit

Permalink
consistent in lib as well
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Oct 5, 2023
1 parent 3aa88d0 commit 242f37d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand All @@ -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
}

Expand Down

0 comments on commit 242f37d

Please sign in to comment.