fail if yum/apt-get is missing even if os check is disabled

This commit is contained in:
ronivay
2021-05-03 17:32:43 +03:00
parent 004527ab3a
commit f71634e960

View File

@@ -879,6 +879,11 @@ function CheckOS {
PKG_FORMAT="deb" PKG_FORMAT="deb"
fi fi
if [[ -z $PKG_FORMAT ]]; then
printfail "this script requires either yum or apt-get"
exit 1
fi
if [[ "$OS_CHECK" != "true" ]]; then if [[ "$OS_CHECK" != "true" ]]; then
return 0 return 0
fi fi