Land #4739, @zeroSteiner's change to prepend_sleep powershell option check

bug/bundler_fix
jvazquez-r7 2015-02-09 15:19:39 -06:00
commit 4822aa5159
No known key found for this signature in database
GPG Key ID: 38D99152B9352D83
1 changed files with 2 additions and 2 deletions

View File

@ -296,8 +296,8 @@ EOS
if opts[:prepend_sleep]
if opts[:prepend_sleep].to_i > 0
psh_payload = "Start-Sleep -s #{opts[:prepend_sleep]};" << psh_payload
else
vprint_error('Sleep time must be greater than 0 seconds')
elsif opts[:prepend_sleep].to_i < 0
vprint_error('Sleep time must be greater than or equal to 0 seconds')
end
end