cisco-vpn: -m flag goes straight to menu without any checks
Some checks failed
Test / test (push) Has been cancelled

This commit is contained in:
2026-01-17 02:38:38 +00:00
parent 2b9688ce44
commit aa071a1fdb

View File

@@ -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..."