From 47a94d67c1a57769f0cf9cf7a4f1733cdb0cfcfc Mon Sep 17 00:00:00 2001 From: Angristan Date: Sun, 19 Aug 2018 13:54:09 +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 c877db8..c33938f 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -69,7 +69,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 1 fi