diff --git a/src/commands/utils/wifi-control.sh b/src/commands/utils/wifi-control.sh index 884ab360..1f80804d 100644 --- a/src/commands/utils/wifi-control.sh +++ b/src/commands/utils/wifi-control.sh @@ -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 \ No newline at end of file +main_menu