Use 2 if instead of elif

This commit is contained in:
angristan 2018-09-17 15:02:57 +02:00
parent 75213a93ea
commit 21cbbecbf9

View file

@ -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