浏览代码

added temp directory cleanup for prior build fail

Chris Simpkins 7 年之前
父节点
当前提交
99c79d891c
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      build.sh

+ 6 - 0
build.sh

@@ -90,6 +90,12 @@ if [ -f "build/ttf/Hack-BoldItalic.ttf" ]; then
 	rm build/ttf/Hack-BoldItalic.ttf
 fi
 
+# remove master_ttf directory if a previous build failed + exited early and it was not cleaned up
+
+if [ -d "master_ttf" ]; then
+	rm -rf master_ttf
+fi
+
 # build regular set
 fontmake -u "source/Hack-Regular.ufo" -o ttf
 if [ $? -ne 0 ]