Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/tblyler/light-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Blyler <tony@blyler.cc>2016-11-03 17:06:40 +0300
committerTony Blyler <tony@blyler.cc>2016-11-03 17:06:40 +0300
commita5c76fdeb24d0f9a270da3c82145d2f54fd22215 (patch)
treeaba1bd8cdcaab06e91508bd221f6aae9484b5ab3
parente97f173f831f200839baac39e4990c937a662773 (diff)
Update build.sh to have clean option
-rwxr-xr-xbuild.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index fadee8c..eccbf12 100755
--- a/build.sh
+++ b/build.sh
@@ -1,4 +1,11 @@
#!/bin/bash
+
+if [ "${1}" = "clean" ]; then
+ echo 'Pruning static/css'
+ rm -R ./static/css/*
+ exit $?
+fi
+
if ! which sass &> /dev/null; then
echo 'sass is missing from PATH' 1>&2
exit 1