Skip to content

Commit

Permalink
btctl: format
Browse files Browse the repository at this point in the history
  • Loading branch information
XPhyro committed Feb 1, 2024
1 parent 077de4b commit edbdd55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sh/interactive/btctl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ EOF

choose_device() {
paired_devices="$(bluetoothctl devices Paired)"
list="$(printf "%s\n" "$paired_devices" | awk 'BEGIN {x = 0} {sub(/^Device [0-9A-F:]+ /, ""); printf("%d. ", ++x); print}')"
list="$(
printf "%s\n" "$paired_devices" \
| awk 'BEGIN {x = 0} {sub(/^Device [0-9A-F:]+ /, ""); printf("%d. ", ++x); print}'
)"
count="$(printf "%s\n" "$list" | wc -l)"
while :; do
printf "%s\n" \
Expand Down

0 comments on commit edbdd55

Please sign in to comment.