When your distro is not supported, handle the case gracefully and let
the user know instead of spitting out bash errors.
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
;;
*)
DISTRO=$os_VENDOR
+ PKGTYPE="unknown"
;;
esac
$SUDO yum install -y $* > /dev/null
}
+function _check-package-unknown() {
+ error_echo "I don't know distro $DISTRO. It might be missing packages."
+ return 1
+}
+
+function _install-package-unknown() {
+ error_echo "I don't know distro $DISTRO. Cannot install packages."
+ return 1
+}
+
# Modifies inherited variable "missing"
function check-package() {
for p in $*