Simple Fix 2

This commit is contained in:
nyx 2024-08-16 00:19:17 -04:00 committed by GitHub
parent bfe9ce3f0e
commit 9a9c6901de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,7 +102,7 @@ prompt_for_network() {
fi
# Display networks with numbers
IFS=$'\n' read -rd '' -a network_list <<<"$networks"
IFS=$'\n' read -r -a network_list <<<"$networks"
for i in "${!network_list[@]}"; do
ssid=$(echo "${network_list[$i]}" | awk -F: '{print $1}')
echo "$((i+1)). SSID: $ssid"
@ -166,4 +166,4 @@ remove_network() {
}
# Initialize
main_menu
main_menu