From 8a77c4ba57b1aca58e5aa9c9b5cbdee455ecf811 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Fri, 23 Aug 2024 01:39:38 -0700 Subject: [PATCH] Fix `w -h` usage --- buildbot/start_script.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildbot/start_script.sh b/buildbot/start_script.sh index 15a1229e0..f079166d6 100755 --- a/buildbot/start_script.sh +++ b/buildbot/start_script.sh @@ -158,7 +158,7 @@ function script_needs_update() { function shutdown_maybe() { if ! script_needs_update ; then [[ $(cat /proc/uptime | grep -oP "^\d+") -lt $((3600*72)) ]] && return - (w -h | wc -l) && return + (w -h | grep .) && return w -h cat /proc/uptime fi