From cdf67a0f9372aba5f6a7016e11be4635afedb5bf Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 9 Dec 2020 13:31:05 +0100 Subject: [PATCH] Replaced cent8 with el8 for beter support --- SimpleInstall.sh | 2 +- readme.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SimpleInstall.sh b/SimpleInstall.sh index a1fba04..d06d332 100644 --- a/SimpleInstall.sh +++ b/SimpleInstall.sh @@ -44,7 +44,7 @@ elif [[ "${dist}" == *"centos"* ]] && [[ "${dist_ver}" == *"8"* ]]; then PKGM="dnf" PKGI="${PKGM} install --setopt=install_weak_deps=False --best -y" PKGLIST="dnf" - shortdist=cent8 + shortdist=el8 else echo "This os in not supported" exit diff --git a/readme.md b/readme.md index b75821d..6997305 100644 --- a/readme.md +++ b/readme.md @@ -20,7 +20,7 @@ ### Run a single command based on OS Example: Centos 8 ``` -if [ "$shortdist" = "cent8" ]; then +if [ "$shortdist" = "el8" ]; then echo "i run when Centos 8 is detected" fi ``` @@ -39,7 +39,7 @@ Example: run Command1 if Debian 10 is detected and run Command2 if Centos 8 is d ``` if [ "$shortdist" = "deb10" ] ; then echo "Command1: i debian 10 is detected" -elif [ "$shortdist" = "cent8" ]; then +elif [ "$shortdist" = "el8" ]; then echo "Command2: i run when Centos 8 is detected" fi ```