Fix an issue

This commit is contained in:
speedie 2023-07-23 20:43:04 +02:00
parent ef18ccad64
commit cca701c551

View file

@ -25,7 +25,7 @@ list_dev() {
# Enable bluetooth and scan for devices # Enable bluetooth and scan for devices
enable_bt() { enable_bt() {
bluetoothctl power on > /dev/null && printf "Power: On\n" bluetoothctl power on > /dev/null && printf "Power: On\n"
bluetoothctl scan on & # Start scanning for devices bluetoothctl scan on # Start scanning for devices
bluetoothctl devices | grep -q "No default controller" && printf "No Bluetooth controller was found.\n" && exit 1 bluetoothctl devices | grep -q "No default controller" && printf "No Bluetooth controller was found.\n" && exit 1
list_dev & list_dev &