@@ -166,6 +166,11 @@ fi
#
# ////////////////////////////////////////////////
+# cleanup any previously created temp directory that was not removed
+if ! [ -d "$TEMP_SOURCE" ]; then
+ rm -rf $TEMP_SOURCE
+fi
+
# create temp directory for subset source files
mkdir $TEMP_SOURCE
@@ -394,6 +399,11 @@ fi
# //////////////////////////////////////////////
+# create the build directory if it does not exist
+if ! [ -d "$WEB_BUILD" ]; then
+ mkdir $WEB_BUILD
echo " "
echo "Moving woff files to build directory..."
@@ -203,6 +203,13 @@ echo " "
# Move release files to build directory
+# create directory if it does not exist
+# (occurs with git + empty directories)
+if ! [ -d build/ttf ]; then
+ mkdir build/ttf
mv master_ttf/hinted/Hack-Regular.ttf build/ttf/Hack-Regular.ttf
echo "Regular ttf build path: build/ttf/Hack-Regular.ttf"
mv master_ttf/hinted/Hack-Italic.ttf build/ttf/Hack-Italic.ttf
@@ -136,6 +136,12 @@ fi
+if ! [ -d "$WOFF_BUILD" ]; then
+ mkdir $WOFF_BUILD
# move woff files to appropriate build directory
mv "$TTF_BUILD/$REGULAR_PRE" "$WOFF_BUILD/$REGULAR_WOFF"
mv "$TTF_BUILD/$BOLD_PRE" "$WOFF_BUILD/$BOLD_WOFF"
@@ -128,7 +128,13 @@ fi
echo "Moving woff2 files to build directory..."
-# move woff files to appropriate build directory
+# move woff2 files to appropriate build directory
mv "$TTF_BUILD/$ITALIC_PRE" "$WOFF_BUILD/$ITALIC_WOFF"