Last active
August 22, 2016 22:38
-
-
Save 91bananas/38d4cb371d03aff158297f2b0c961615 to your computer and use it in GitHub Desktop.
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
CSS=`git rev-parse --git-dir`'/../static/frontend/css/bundles' | |
JS=`git rev-parse --git-dir`'/../static/frontend/js/bundles' | |
MESSAGE='' | |
ZERO=0 | |
if [ -d "$CSS" ]; then | |
rm -r $CSS | |
MESSAGE+='Deleted frontend ccs\n' | |
fi | |
if [ -d "$JS" ]; then | |
rm -r $JS | |
MESSAGE+='Deleted frontend js\n' | |
fi | |
LENGTH=${#MESSAGE} | |
if (( LENGTH > ZERO )); then | |
echo '\n'$MESSAGE'Run grunt next time you run the app\n' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment