execute 0.1.7 → 0.1.8

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: 136de8d8682549cc6430b228c3fe34e3bd646b33
4
- data.tar.gz: 17ddeb504dc69715e9b9c7421f04175b41d692fe
3
+ metadata.gz: cc27bbecf5a0307584ceffffc4f3120a42b2ffe0
4
+ data.tar.gz: cde8eb6ea12750cecc95213552e541dda1ca5d52
5
5
  SHA512:
6
- metadata.gz: ed7933e383171891718afadc1714df073eced3a477cd1fb72ca091fe2fd1b46568399468e01bba032a5e34e06fe33cc35d6aa006336edf5848cd67922fb7bb50
7
- data.tar.gz: afafb75f9ce9204fc9740fe2ef83c2bfc6b82c1c5c9eec441418eee3ceb60184248551f77211580de75f168cfa983b88fc28dc77049d419d2374ee8cb733b8cd
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
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall