Merge pull request #169 from nnyyxxxx/main

Resolves #164
This commit is contained in:
Chris Titus 2024-08-16 00:09:40 -05:00 committed by GitHub
commit 4b721b80b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@ prompt_for_mac() {
fi
# Display devices with numbers
IFS=$'\n' read -rd '' -a device_list <<<"$devices"
IFS=$'\n' read -r -a device_list <<<"$devices"
for i in "${!device_list[@]}"; do
echo "$((i+1)). ${device_list[$i]}"
done
@ -128,4 +128,4 @@ remove_device() {
}
# Initialize
main_menu
main_menu

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