From 4b0f47b534f374deebdd0e5430f2caf908b3e79f Mon Sep 17 00:00:00 2001 From: angristan Date: Mon, 27 Jan 2020 18:08:06 +0100 Subject: [PATCH] Fix Fedora detection --- openvpn-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 8b1784c..90ea433 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -54,6 +54,9 @@ function checkOS () { elif [[ -e /etc/system-release ]]; then # shellcheck disable=SC1091 source /etc/os-release + if [[ "$ID" = "fedora" ]]; then + OS="fedora" + fi if [[ "$ID" = "centos" ]]; then OS="centos" if [[ ! $VERSION_ID =~ (7|8) ]]; then @@ -74,8 +77,6 @@ function checkOS () { exit 1 fi fi - elif [[ -e /etc/fedora-release ]]; then - OS=fedora elif [[ -e /etc/arch-release ]]; then OS=arch else