Replaced cent8 with el8 for beter support
This commit is contained in:
@@ -44,7 +44,7 @@ elif [[ "${dist}" == *"centos"* ]] && [[ "${dist_ver}" == *"8"* ]]; then
|
|||||||
PKGM="dnf"
|
PKGM="dnf"
|
||||||
PKGI="${PKGM} install --setopt=install_weak_deps=False --best -y"
|
PKGI="${PKGM} install --setopt=install_weak_deps=False --best -y"
|
||||||
PKGLIST="dnf"
|
PKGLIST="dnf"
|
||||||
shortdist=cent8
|
shortdist=el8
|
||||||
else
|
else
|
||||||
echo "This os in not supported"
|
echo "This os in not supported"
|
||||||
exit
|
exit
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
### Run a single command based on OS
|
### Run a single command based on OS
|
||||||
Example: Centos 8
|
Example: Centos 8
|
||||||
```
|
```
|
||||||
if [ "$shortdist" = "cent8" ]; then
|
if [ "$shortdist" = "el8" ]; then
|
||||||
echo "i run when Centos 8 is detected"
|
echo "i run when Centos 8 is detected"
|
||||||
fi
|
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
|
if [ "$shortdist" = "deb10" ] ; then
|
||||||
echo "Command1: i debian 10 is detected"
|
echo "Command1: i debian 10 is detected"
|
||||||
elif [ "$shortdist" = "cent8" ]; then
|
elif [ "$shortdist" = "el8" ]; then
|
||||||
echo "Command2: i run when Centos 8 is detected"
|
echo "Command2: i run when Centos 8 is detected"
|
||||||
fi
|
fi
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user