aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rw-r--r--build.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/build.sh b/build.sh
index f57efe8..c0226d8 100644
--- a/build.sh
+++ b/build.sh
@@ -7,6 +7,9 @@ then
./lab/svg2ttf.py ./lab/metadata.json
fi
+install -d -m755 -v "./dist/fonts/"
+install -d -m755 -v "./dist/css/"
+
# copy files to fonts
if [[ -n "$(ls -a ./lab/libresocial.{svg,otf,ttf,woff})" ]];
then
@@ -14,8 +17,5 @@ then
mv -fv ./lab/libresocial.{svg,otf,ttf,woff} ./dist/fonts/
fi
-if [[ -n "$(ls -a ./dist/css/libresocial.css)" ]];
-then
- rm -v ./dist/css/libresocial.css
- sass --style expanded --sourcemap=none scss/libresocial.scss:dist/css/libresocial.css
-fi
+rm -v ./dist/css/libresocial.css 2> /dev/null || true
+sassc -t expanded scss/libresocial.scss dist/css/libresocial.css