From 0aa4d73ef01abea2c30eee1e04776ea9b1471a61 Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Wed, 21 Jun 2023 14:44:31 +0200 Subject: [PATCH] fix: excluded first line in network list output --- dmenu_scripts/wpa_connect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmenu_scripts/wpa_connect b/dmenu_scripts/wpa_connect index 6294fa7..5c0d00f 100755 --- a/dmenu_scripts/wpa_connect +++ b/dmenu_scripts/wpa_connect @@ -1,7 +1,7 @@ #!/bin/bash # 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 selected_network=$(echo "$networks" | dmenu -p "Select a network:")