Skip to content

Commit

Permalink
Merge pull request #81 from brknkfr/fix_preserve-timeout
Browse files Browse the repository at this point in the history
Small fix: --preserve-status has to be before timeout number
  • Loading branch information
Cyclenerd authored May 16, 2024
2 parents ab42e0c + 1a7159d commit 671e137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ while IFS=';' read -r MY_COMMAND MY_HOSTNAME_STRING MY_PORT || [[ -n "$MY_COMMAN
else
cmd="$MY_HOSTNAME"
fi
(timeout "$MY_SCRIPT_TIMEOUT" --preserve-status "$cmd" &> /dev/null)
(timeout --preserve-status "$MY_SCRIPT_TIMEOUT" "$cmd" &> /dev/null)
case "$?" in
"0")
check_downtime "$MY_COMMAND" "$MY_HOSTNAME_STRING" "$MY_PORT"
Expand Down

0 comments on commit 671e137

Please sign in to comment.