Use 2 if instead of elif
This commit is contained in:
parent
d3cabadd8f
commit
47a94d67c1
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue