Use 2 if instead of elif

This commit is contained in:
Angristan 2018-08-19 13:54:09 +02:00
parent d3cabadd8f
commit 47a94d67c1

View file

@ -69,7 +69,8 @@ function initialCheck () {
if ! isRoot; then if ! isRoot; then
echo "Sorry, you need to run this as root" echo "Sorry, you need to run this as root"
exit 1 exit 1
elif ! tunAvailable; then fi
if ! tunAvailable; then
echo "TUN is not available" echo "TUN is not available"
exit 1 exit 1
fi fi