Skip to content

Instantly share code, notes, and snippets.

@91bananas
Last active August 22, 2016 22:38
Show Gist options
  • Save 91bananas/38d4cb371d03aff158297f2b0c961615 to your computer and use it in GitHub Desktop.
Save 91bananas/38d4cb371d03aff158297f2b0c961615 to your computer and use it in GitHub Desktop.
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