Created
March 3, 2014 12:56
-
-
Save kucaahbe/9324386 to your computer and use it in GitHub Desktop.
mina deploy wrapper script
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
#!/bin/bash | |
# removes from PATH sections with `rbenv` | |
PATH=`echo ${PATH} | awk -v RS=: -v ORS=: '/rbenv/ {next} {print}'` | |
MINA=`which mina` | |
[ -x "$MINA" ] || (echo "mina not found: installing mina gem" && sudo gem install mina) | |
mina $* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment