diff --git a/core/tabs/utils/bluetooth-control.sh b/core/tabs/utils/bluetooth-control.sh index 4cb299aa..0e4dfa6c 100644 --- a/core/tabs/utils/bluetooth-control.sh +++ b/core/tabs/utils/bluetooth-control.sh @@ -83,7 +83,7 @@ prompt_for_mac() { # Display devices with numbers i=1 - for device in $device_list; do + echo "$devices" | while IFS= read -r device; do printf "%d. %s\n" "$i" "$device" i=$((i + 1)) done