Skip to content

Instantly share code, notes, and snippets.

@dmethvin
Created December 19, 2012 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmethvin/4339308 to your computer and use it in GitHub Desktop.
Save dmethvin/4339308 to your computer and use it in GitHub Desktop.
#!/bin/sh
basedir=`dirname "$0"`
case `uname` in
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/node_modules/grunt-cli/bin/grunt" "$@"
ret=$?
else
node "$basedir/node_modules/grunt-cli/bin/grunt" "$@"
ret=$?
fi
exit $ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment