execute 0.1.56 → 0.1.57

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cmd.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65184c6b6db2e699032bd5db2514e0fe69525ff3
4
- data.tar.gz: 1a7dcecdb46d211957437b2efa25678097ffb274
3
+ metadata.gz: 04aa05aa8f9515fb21c41e116907fe89801802b9
4
+ data.tar.gz: 01eb2ee645f90af5c55ce6a714f2d920a33cad6a
5
5
  SHA512:
6
- metadata.gz: 6998a2103ffd1f9e6e0ac82e8dac4c05e21f6dd3630a0fe3bbf3de9c55711ea2f5904dce064c165ab7a152006fc24abb4d11b1bc649647aecc010ac134c31edc
7
- data.tar.gz: 17a82e72c3b162649fdcfc77b3b6a84111ceca40c869639f70740fa8358c87187340051ba04a0bb48f2b9885c83cdf927908966ba4f25ff9f2af160c2f7f520b
6
+ metadata.gz: 7cd01c0421b1852a48669680183ff5a1514191f692a610b6cdf0915d2db16baf9dce0f09c5cd10caf419fef24be4e11b24382d6100d60a629f8aff23d94bad7f
7
+ data.tar.gz: e1a36114b119bd32089e693d234528ac3591f719e2eca77a149290b6d6ece7a32ec5cb201ed0d610a36757074cfd51196c7600efadc47624959642af294ea122
data/lib/cmd.rb CHANGED
@@ -146,7 +146,7 @@ class CMD < Hash
146
146
  self[:exit_code] = status.to_i
147
147
  end
148
148
 
149
- puts self[:output] if(self[:echo_output])
149
+ puts self[:output] if(self[:echo_output] && !self[:output].empty?)
150
150
 
151
151
  raise TimeoutError.new("Command '#{self[:command]}' timed out after #{self[:timeout]} seconds") if(key?(:timed_out) && self[:timeout_raise_error])
152
152
  rescue Exception => e
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: execute
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.56
4
+ version: 0.1.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall