execute 0.1.56 → 0.1.57
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cmd.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04aa05aa8f9515fb21c41e116907fe89801802b9
|
4
|
+
data.tar.gz: 01eb2ee645f90af5c55ce6a714f2d920a33cad6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|