Fix Bluetooth scanning bailing after device discovery
The script was exiting immediately after showing "Devices found: 14" because the timeout command returns exit code 124, which caused the script to bail due to 'set -euo pipefail'. Added '|| true' to wait and bluetoothctl scan off commands to allow the script to continue executing and display the device list. install_kiosk_0.9.6-2.sh:7185-7186
This commit is contained in:
@@ -7182,8 +7182,8 @@ addon_bluetooth() {
|
||||
fi
|
||||
done
|
||||
|
||||
wait $scan_pid 2>/dev/null
|
||||
bluetoothctl scan off 2>/dev/null
|
||||
wait $scan_pid 2>/dev/null || true
|
||||
bluetoothctl scan off 2>/dev/null || true
|
||||
|
||||
echo
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user