cisco-vpn: -m flag goes straight to menu without any checks
Some checks failed
Test / test (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
This commit is contained in:
@@ -766,14 +766,14 @@ fi
|
||||
log INFO "Script started"
|
||||
echo ""
|
||||
|
||||
# If -m/--menu flag, skip everything and go straight to menu
|
||||
if [ "$SKIP_AUTO_LOGIN" = "true" ]; then
|
||||
log INFO "Menu mode - skipping auto-login"
|
||||
# Check current status
|
||||
if check_vpn_status; then
|
||||
elif check_vpn_status; then
|
||||
echo ""
|
||||
log INFO "VPN already connected. Setting up forwarding..."
|
||||
setup_forwarding
|
||||
elif [ "$SKIP_AUTO_LOGIN" = "true" ]; then
|
||||
echo ""
|
||||
log INFO "Menu mode - skipping auto-login"
|
||||
else
|
||||
echo ""
|
||||
log INFO "Auto-starting VPN connection..."
|
||||
|
||||
Reference in New Issue
Block a user