From bfe9ce3f0e7f5f67181eb180ea0448416733d206 Mon Sep 17 00:00:00 2001 From: nyx <144965845+nnyyxxxx@users.noreply.github.com> Date: Fri, 16 Aug 2024 00:18:55 -0400 Subject: [PATCH 1/2] Simple Fix --- src/commands/utils/bluetooth-control.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/utils/bluetooth-control.sh b/src/commands/utils/bluetooth-control.sh index ecfd53ad..e5e02fc6 100644 --- a/src/commands/utils/bluetooth-control.sh +++ b/src/commands/utils/bluetooth-control.sh @@ -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 \ No newline at end of file +main_menu From 9a9c6901dec725d57546a3e2b7b05631ac27ccd6 Mon Sep 17 00:00:00 2001 From: nyx <144965845+nnyyxxxx@users.noreply.github.com> Date: Fri, 16 Aug 2024 00:19:17 -0400 Subject: [PATCH 2/2] Simple Fix 2 --- src/commands/utils/wifi-control.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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