Created
December 18, 2018 13:30
-
-
Save wikiti/b36a3e4fa584fc15f26a1adc8bcbbb2d to your computer and use it in GitHub Desktop.
Run a command until it returns a non-zero exit code. Alternatively, run a command until it returns a zero exit code.
This file contains hidden or 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
# Format | |
while <command>; do :; done | |
# Example | |
while bundle exec rspec spec/models/project_spec.rb:15; do :; done | |
# Alternatively, you may use `until` instead of `while` to run a command until it returns a 0 exit code. | |
until <command>; do :; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment