- Kernel.system() doesn't return exit code, use $?

This commit is contained in:
root 2011-03-07 13:10:14 -05:00
parent 817cba2b45
commit 1a91db513f
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class FPM::Target::Rpm < FPM::Package
"#{name}.spec"]
ret = system(*args)
if !ret
raise "rpmbuild failed (exit code: #{ret}"
raise "rpmbuild failed (exit code: #{$?.exitstatus})"
end
Dir["#{Dir.pwd}/RPMS/**/*.rpm"].each do |path|