execute 0.1.7 → 0.1.8
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: cc27bbecf5a0307584ceffffc4f3120a42b2ffe0
|
4
|
+
data.tar.gz: cde8eb6ea12750cecc95213552e541dda1ca5d52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff91688095593a7b531fa5da37bf84253236caf624929506ca66afd769add5a3cf2a4535f0d91aee11da7e215ac60ea480772e70c0dfc0b25e7c3d34327c2d3d
|
7
|
+
data.tar.gz: 1b8ddacfe671c96e1a558061a3d37bfad4b7aac5d05244fd956841bb0616584b0be5476d7dc627d84bd2070d36bef27ccf1415b02e97e666ef12450237672a4a
|
data/lib/cmd.rb
CHANGED
@@ -55,7 +55,7 @@ class CMD < Hash
|
|
55
55
|
|
56
56
|
if((self[:exit_code] != 0) && !self[:ignore_exit_code])
|
57
57
|
exception_text = self[:error]
|
58
|
-
exception_text = self[:output] if(self[:error].empty?)
|
58
|
+
exception_text = self[:output] if(self[:error].nil? || self[:error].empty?)
|
59
59
|
raise exception_text
|
60
60
|
end
|
61
61
|
end
|