Update build.sh to have clean option

This commit is contained in:
Tony Blyler 2016-11-03 10:06:40 -04:00
parent e97f173f83
commit a5c76fdeb2

View file

@ -1,4 +1,11 @@
#!/bin/bash #!/bin/bash
if [ "${1}" = "clean" ]; then
echo 'Pruning static/css'
rm -R ./static/css/*
exit $?
fi
if ! which sass &> /dev/null; then if ! which sass &> /dev/null; then
echo 'sass is missing from PATH' 1>&2 echo 'sass is missing from PATH' 1>&2
exit 1 exit 1