Update build.sh to have clean option
This commit is contained in:
parent
e97f173f83
commit
a5c76fdeb2
1 changed files with 7 additions and 0 deletions
7
build.sh
7
build.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue