Check for fedora earlier as fedora 30+ also has /etc/os-release
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
This commit is contained in:
parent
40a9fb975a
commit
cb55d1507b
1 changed files with 2 additions and 2 deletions
|
|
@ -50,6 +50,8 @@ function checkOS () {
|
|||
fi
|
||||
fi
|
||||
fi
|
||||
elif [[ -e /etc/fedora-release ]]; then
|
||||
OS=fedora
|
||||
elif [[ -e /etc/system-release ]]; then
|
||||
source /etc/os-release
|
||||
if [[ "$ID" = "centos" ]]; then
|
||||
|
|
@ -72,8 +74,6 @@ function checkOS () {
|
|||
exit 1
|
||||
fi
|
||||
fi
|
||||
elif [[ -e /etc/fedora-release ]]; then
|
||||
OS=fedora
|
||||
elif [[ -e /etc/arch-release ]]; then
|
||||
OS=arch
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue