From c08efa22272e330dc923d9c3fe32531dd31d99e4 Mon Sep 17 00:00:00 2001 From: prschopf <16743256+prschopf@users.noreply.github.com> Date: Mon, 9 Mar 2026 19:07:08 -0300 Subject: [PATCH] Update bluetooth.sh --- usr/share/biglinux/biglinux-settings/devices/bluetooth.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/share/biglinux/biglinux-settings/devices/bluetooth.sh b/usr/share/biglinux/biglinux-settings/devices/bluetooth.sh index fa1dc41..13a09d4 100755 --- a/usr/share/biglinux/biglinux-settings/devices/bluetooth.sh +++ b/usr/share/biglinux/biglinux-settings/devices/bluetooth.sh @@ -3,7 +3,9 @@ # check current status # action=$1 if [ "$1" == "check" ]; then - bluetoothState="$(LANG=C LANGUAGE=C timeout 0.1 echo "show" | bluetoothctl | grep "Powered:" | awk '{print $2}')" + set -o pipefail + bluetoothState="$(LANG=C LANGUAGE=C echo "show" | timeout 0.1 bluetoothctl | grep "Powered:" | awk '{print $2}')" + set +o pipefail if [[ "$bluetoothState" == "yes" ]];then echo "true" else