add condition statement for execution of exits without token.

pull/40/head
glen 4 years ago
parent 3ca80f1494
commit 36559ad249

@ -38,8 +38,13 @@ bootstrap)
;;
exitup)
if [ "$3" = "" ]; then
lokinet-vpn --up --exit "$2"
echo -n "lokinet --vpn --exit ""$2"
else
lokinet-vpn --up --exit "$2" --token "$3"
echo -n "lokinet-vpn --up --exit ""$2"" --token ""$3"
fi
;;
exitdown)

Loading…
Cancel
Save