2
0
Эх сурвалжийг харах

added temp directory cleanup for prior build fail

Chris Simpkins 7 жил өмнө
parent
commit
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 ]