mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 08:25:58 +01:00
Protect against nil return codes in rakefiles
This commit is contained in:
@@ -173,7 +173,7 @@ module RakefileHelpers
|
||||
report command_string if $verbose
|
||||
output = `#{command_string}`.chomp
|
||||
report(output) if $verbose && !output.nil? && !output.empty?
|
||||
raise "Command failed. (Returned #{$?.exitstatus})" if !$?.exitstatus.zero? && !ok_to_fail
|
||||
raise "Command failed. (Returned #{$?.exitstatus})" if !$?.nil? && !$?.exitstatus.zero? && !ok_to_fail
|
||||
output
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user