From f71634e960adbea93d4acf488bd69b930c0179ea Mon Sep 17 00:00:00 2001 From: ronivay Date: Mon, 3 May 2021 17:32:43 +0300 Subject: [PATCH] fail if yum/apt-get is missing even if os check is disabled --- xo-install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xo-install.sh b/xo-install.sh index 170c532..b714cd6 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -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