Created
February 1, 2011 16:52
-
-
Save mikesusz/806129 to your computer and use it in GitHub Desktop.
a git pre-commit hook for compass compiling of sass to css
This file contains 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/sh | |
# | |
# this pre-commit script uses compass to compile and compress stylesheet partials | |
compass compile wp-content/themes/mytheme/ -s compact --force --no-line-comments | |
wait $! | |
git add wp-content/themes/mytheme/style.css |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
many thanks to fr0sty on freenode/#git for pointing out that i was (originally) calling compass via 'exec' which never returned status to the shell and therefore (subsequent commands) weren't waiting.