Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle multiple commands. #5

Closed
frankcarey opened this issue Nov 9, 2015 · 1 comment
Closed

How to handle multiple commands. #5

frankcarey opened this issue Nov 9, 2015 · 1 comment

Comments

@frankcarey
Copy link
Contributor

Running multiple bash commands per ahoy command can be implemented easily using the following:

a && b
if a returns zero exit code, then b is executed.

a || b
if a returns non-zero exit code, then b is executed.

a ; b
a is executed and then b is executed.

@frankcarey
Copy link
Contributor Author

This works well, so I don't think we need something more fancy. Added docs to https://github.com/devinci-code/ahoy/wiki/Multiple-line-commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant