Skip to content

Instantly share code, notes, and snippets.

@boutell
Created October 27, 2013 15:04
Show Gist options
  • Save boutell/7183307 to your computer and use it in GitHub Desktop.
Save boutell/7183307 to your computer and use it in GitHub Desktop.
Subshells + Bash's "and" and "or" operators = kinda awesome
(
(cd server-status && git pull) ||
(rm -rf server-status && git clone https://github.com/punkave/server-status)
) &&
cd server-status &&
npm install ... etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment