forked from fr/wpa_tui
1
0
Fork 0

fix: excluded first line in network list output

master
Filip Rojek 1 year ago
parent c988989eb0
commit 0aa4d73ef0
Signed by untrusted user: fr
GPG Key ID: 15DACCB749C801FA

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Retrieve saved network names from wpa_supplicant # Retrieve saved network names from wpa_supplicant
networks=$(wpa_cli -i wlan0 list_networks | awk '{print $2}') networks=$(wpa_cli -i wlan0 list_networks | awk '{print $2}' | tail -n +2)
# Display network names using dmenu and store the selected network # Display network names using dmenu and store the selected network
selected_network=$(echo "$networks" | dmenu -p "Select a network:") selected_network=$(echo "$networks" | dmenu -p "Select a network:")

Loading…
Cancel
Save