Permalink
Browse files

- stylefix

  • Loading branch information...
1 parent 8a46038 commit 068f7cd59ce9deb9eb092316c92657b656076608 @jordansissel committed Aug 20, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/fpm/util.rb
View
10 lib/fpm/util.rb
@@ -1,7 +1,7 @@
-def safesystem(*call)
- return_val = system(*call)
- if !return_val
- raise "'#{call}' failed with error code: #{$?.exitstatus}"
+def safesystem(*args)
+ success = system(*args)
+ if !success
+ raise "'system(#{args.inspect})' failed with error code: #{$?.exitstatus}"
end
- return return_val
+ return success
end # def safesystem

0 comments on commit 068f7cd

Please sign in to comment.