diff --git a/templates/launch-wifi-menu.sh.j2 b/templates/launch-wifi-menu.sh.j2 index c8ff6b0..785b54f 100644 --- a/templates/launch-wifi-menu.sh.j2 +++ b/templates/launch-wifi-menu.sh.j2 @@ -15,6 +15,8 @@ if [ -z "$CHOSEN_SSID" ]; then exit 0 fi +CHOSEN_SSID="${CHOSEN_SSID%?}" + # Tjek om vi allerede er forbundet til det valgte netværk if nmcli connection show --active | grep -wq "^${CHOSEN_SSID}"; then exit 0