Skip to content

Instantly share code, notes, and snippets.

@thbar
Created January 23, 2012 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thbar/1664439 to your computer and use it in GitHub Desktop.
Save thbar/1664439 to your computer and use it in GitHub Desktop.
Please don't use ruby 'system' without checking exit code
module Kernel
def system!(command)
raise "Failed to launch command #{command}" unless system(command)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment