fail if yum/apt-get is missing even if os check is disabled
This commit is contained in:
@@ -879,6 +879,11 @@ function CheckOS {
|
||||
PKG_FORMAT="deb"
|
||||
fi
|
||||
|
||||
if [[ -z $PKG_FORMAT ]]; then
|
||||
printfail "this script requires either yum or apt-get"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ "$OS_CHECK" != "true" ]]; then
|
||||
return 0
|
||||
fi
|
||||
|
Reference in New Issue
Block a user