Skip to content

Commit

Permalink
Fix w -h usage
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka authored Aug 23, 2024
1 parent b9a72e0 commit 8a77c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildbot/start_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a77c4b

Please sign in to comment.