Remove bashisms out of bluetooth-control (#462)

Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com>
This commit is contained in:
Nyx 2024-09-18 14:30:27 -04:00 committed by GitHub
parent 69b61e7265
commit 093883e1bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -68,8 +68,8 @@ scan_devices() {
printf "%b\n" "${GREEN}Devices found:${RC}"
echo "$devices"
fi
echo "Press any key to return to the main menu..."
read -n 1
printf "Press any key to return to the main menu..."
read -r dummy
}
# Function to prompt for MAC address using numbers
@ -85,8 +85,8 @@ prompt_for_mac() {
devices=$(bluetoothctl devices)
if [ -z "$devices" ]; then
printf "%b\n" "${RED}No devices available. Please scan for devices first.${RC}"
echo "Press any key to return to the main menu..."
read -n 1
printf "Press any key to return to the main menu..."
read -r dummy
return
fi
@ -121,8 +121,8 @@ prompt_for_mac() {
printf "%b\n" "${RED}Invalid choice. Please try again.${RC}"
fi
done
echo "Press any key to return to the main menu..."
read -n 1
printf "Press any key to return to the main menu..."
read -r dummy
}
# Function to pair with a device