Skip to content

Instantly share code, notes, and snippets.

@bassettsj
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save bassettsj/87f8f7346af537c104cf to your computer and use it in GitHub Desktop.

Select an option

Save bassettsj/87f8f7346af537c104cf to your computer and use it in GitHub Desktop.
Execute Grunt Compile on commit
#!/bin/sh
echo
if [ -a .commit ]
then
rm .commit
grunt --base=$HOME/kalabox/www/greenbiz/sites/all/themes/greenbiz --gruntfile=$HOME/kalabox/www/greenbiz/sites/all/themes/greenbiz/Gruntfile.coffee
git add sites/all/themes/greenbiz/css
git add sites/all/themes/greenbiz/js/dist
git commit --amend -C HEAD --no-verify
fi
exit
#!/bin/sh
echo
touch .commit
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment