Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei authored Feb 21, 2023
1 parent add853f commit db91554
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ if [[ -z "$os_version" && -f /etc/lsb-release ]]; then
fi

if [[ x"${release}" == x"centos" ]]; then
if [[ ${os_version} -le 8 ]]; then
if [[ ${os_version} -le 7 ]]; then
echo -e "${red} Please use CentOS 8 or higher ${plain}\n" && exit 1
fi
elif [[ x"${release}" == x"ubuntu" ]]; then
if [[ ${os_version} -lt 20 ]]; then
if [[ ${os_version} -lt 18 ]]; then
echo -e "${red} Please use Ubuntu 20 or higher ${plain}\n" && exit 1
fi
elif [[ x"${release}" == x"debian" ]]; then
if [[ ${os_version} -lt 10 ]]; then
if [[ ${os_version} -lt 9 ]]; then
echo -e "${red} Please use Debian 10 or higher ${plain}\n" && exit 1
fi
fi
Expand Down

0 comments on commit db91554

Please sign in to comment.