execute 0.1.36 → 0.1.37
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 +2 -3
- 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: 50979d85b76131a887a010d6c3d166c6d8210d8c
|
4
|
+
data.tar.gz: ae27c5d9262f350ee15f11c2244b685ac22342c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d466768a2f3ba27561e38d55b772ff1f682ee1495462f11dbd34409ce705767dd7dc15c95cca8cbbc5b5656476ce05b8e02825a0926418825711c8f095425d71
|
7
|
+
data.tar.gz: d0a0aba93cd1a5ac38ea6607c0ddbbd27fb191b198dba8aa198f71a97c4ccf1b8f630d2483dbbd5b0ceb45bab0d30e1ed128ddaa4663d0b8d88890223b884295
|
data/lib/cmd.rb
CHANGED
@@ -37,7 +37,6 @@ class CMD < Hash
|
|
37
37
|
puts "exit_code: #{self[:exit_code]}"
|
38
38
|
end
|
39
39
|
|
40
|
-
puts "exit_code: #{self[:exit_code]}"
|
41
40
|
if((self[:exit_code] != 0) && !self[:ignore_exit_code])
|
42
41
|
exception_text = "Exit code: #{self[:exit_code]}"
|
43
42
|
exception_text = "#{exception_text}\nError: '#{self[:error]}'"
|
@@ -76,8 +75,8 @@ class CMD < Hash
|
|
76
75
|
|
77
76
|
wait_thr.join
|
78
77
|
|
79
|
-
self[:output] = output
|
80
|
-
self[:error] = error
|
78
|
+
self[:output] = output unless(output.empty?)
|
79
|
+
self[:error] = error unless(error.empty?)
|
81
80
|
self[:exit_code] = wait_thr.value.to_i
|
82
81
|
end
|
83
82
|
rescue Exception => e
|