aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-11-07 12:57:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-11-07 12:57:20 +0200
commitbb6b9ba411b09017a582ee9566d42896fddc8d62 (patch)
tree443515b00b4d3ac352316cc3b9111d8e1a67ec7c
parent497ec1126ddea837575420cb624d6aa7009beb99 (diff)
Don't fail if unable to query sensors
-rwxr-xr-xbuildos9
1 files changed, 8 insertions, 1 deletions
diff --git a/buildos b/buildos
index 6510977..6b81de3 100755
--- a/buildos
+++ b/buildos
@@ -1027,6 +1027,7 @@ declare -A toolchain_cursors # Latest systemd journal cursor.
# Monitoring loop.
#
+sensors=true
count=0
while true; do
@@ -1345,7 +1346,13 @@ EOF
done
fi
- sensors -A
+ if [ "$sensors" ]; then
+ if ! sensors -A; then
+ info "unable to query sensors, disabling"
+ sensors=
+ fi
+ fi
+
info "monitoring..."
sleep 60
done