Skip to content

Commit 671e137

Browse files
authored
Merge pull request #81 from brknkfr/fix_preserve-timeout
Small fix: --preserve-status has to be before timeout number
2 parents ab42e0c + 1a7159d commit 671e137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

status.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ while IFS=';' read -r MY_COMMAND MY_HOSTNAME_STRING MY_PORT || [[ -n "$MY_COMMAN
915915
else
916916
cmd="$MY_HOSTNAME"
917917
fi
918-
(timeout "$MY_SCRIPT_TIMEOUT" --preserve-status "$cmd" &> /dev/null)
918+
(timeout --preserve-status "$MY_SCRIPT_TIMEOUT" "$cmd" &> /dev/null)
919919
case "$?" in
920920
"0")
921921
check_downtime "$MY_COMMAND" "$MY_HOSTNAME_STRING" "$MY_PORT"

0 commit comments

Comments
 (0)