Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit 3aa8a69

Browse files
committed
#703: extra check in case max is undefined, or zero or less
1 parent 118cad8 commit 3aa8a69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

deploy/lib/server_config.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,9 @@ def restart
652652
retry_count += 1
653653
end
654654

655-
if new_timestamp == old_timestamp
655+
if retry_max < 1
656+
puts ": SKIPPED"
657+
elsif new_timestamp == old_timestamp
656658
puts ": FAILED"
657659
else
658660
puts ": OK"

0 commit comments

Comments
 (0)