From 21cbbecbf97350f081384e3c67dc35f81e907a07 Mon Sep 17 00:00:00 2001 From: angristan Date: Mon, 17 Sep 2018 15:02:57 +0200 Subject: [PATCH] Use 2 if instead of elif --- openvpn-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 3f1c41a..7db80b0 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -67,7 +67,8 @@ function initialCheck () { if ! isRoot; then echo "Sorry, you need to run this as root" exit 1 - elif ! tunAvailable; then + fi + if ! tunAvailable; then echo "TUN is not available" exit 2 fi