Land #4739, @zeroSteiner's change to prepend_sleep powershell option check
commit
4822aa5159
|
@ -296,8 +296,8 @@ EOS
|
||||||
if opts[:prepend_sleep]
|
if opts[:prepend_sleep]
|
||||||
if opts[:prepend_sleep].to_i > 0
|
if opts[:prepend_sleep].to_i > 0
|
||||||
psh_payload = "Start-Sleep -s #{opts[:prepend_sleep]};" << psh_payload
|
psh_payload = "Start-Sleep -s #{opts[:prepend_sleep]};" << psh_payload
|
||||||
else
|
elsif opts[:prepend_sleep].to_i < 0
|
||||||
vprint_error('Sleep time must be greater than 0 seconds')
|
vprint_error('Sleep time must be greater than or equal to 0 seconds')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue