Skip to content

Instantly share code, notes, and snippets.

@kucaahbe
Created March 3, 2014 12:56
Show Gist options
  • Save kucaahbe/9324386 to your computer and use it in GitHub Desktop.
Save kucaahbe/9324386 to your computer and use it in GitHub Desktop.
mina deploy wrapper script
#!/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