From 92e231605f1c3b45663819d02c65badf8c4ac977 Mon Sep 17 00:00:00 2001 From: Luis Toledo Date: Wed, 7 Jun 2017 21:16:48 +0200 Subject: [PATCH] Update build script to create output and temp folders when they does not exits --- scripts/build.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index e342992..2b255d2 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -17,6 +17,14 @@ TEMP2="../temp/newfile2.txt" TIMESTAMP=$(date -u +%Y%m%d_%H%M%SZ) OUTPUT="../output/Manifestos_for_the_Internet_Age-"$TIMESTAMP".pdf" +## Create the temp and output folder if they does not exist +if [ ! -d "../temp" ]; then + mkdir ../temp +fi +if [ ! -d "../output" ]; then + mkdir ../output +fi + if [ ! -d ~/.fonts ]; then mkdir ~/.fonts fi