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