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