-
-
Save millisami/1669187 to your computer and use it in GitHub Desktop.
Please don't use ruby 'system' without checking exit code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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