consistent in lib as well
This commit is contained in:
parent
3aa88d0c12
commit
242f37d7b7
5
lib.sh
5
lib.sh
@ -159,6 +159,7 @@ install_linux_package() {
|
|||||||
# osInfo[/etc/SuSE-release]=zypp
|
# osInfo[/etc/SuSE-release]=zypp
|
||||||
# osInfo[/etc/debian_version]=apt-get
|
# osInfo[/etc/debian_version]=apt-get
|
||||||
# osInfo[/etc/alpine-release]=apk
|
# osInfo[/etc/alpine-release]=apk
|
||||||
|
print_text_in_color "$IGreen" Installing "${1}"...
|
||||||
if [ -x "$(command -v apt-get)" ]
|
if [ -x "$(command -v apt-get)" ]
|
||||||
then
|
then
|
||||||
sudo apt-get install "${1}" -y
|
sudo apt-get install "${1}" -y
|
||||||
@ -181,7 +182,7 @@ install_linux_package() {
|
|||||||
then
|
then
|
||||||
sudo emerge -av "${1}"
|
sudo emerge -av "${1}"
|
||||||
else
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -208,7 +209,7 @@ purge_linux_package() {
|
|||||||
then
|
then
|
||||||
sudo emerge -Cv "${1}"
|
sudo emerge -Cv "${1}"
|
||||||
else
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user