From 038db25c44162233e0b533bfc555662d94d7a543 Mon Sep 17 00:00:00 2001 From: Matt Troutman Date: Fri, 27 Sep 2024 10:24:15 -0500 Subject: [PATCH] update the prep script --- prep 1 font.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/prep 1 font.sh b/prep 1 font.sh index bb87439..56b91ab 100755 --- a/prep 1 font.sh +++ b/prep 1 font.sh @@ -6,6 +6,12 @@ if [[ $PWD == *"font_files" ]] || [[ $PWD == *"custom_fonts" ]]; then exit fi +#if file name .setup_complete exists, exit +if [ -f .setup_complete ]; then + echo "This folder has already been prepped. Please delete the .setup_complete file if you would like to run this script again." + exit +fi + #recursively find all .zip files and unzip them find . -name '*.zip' -exec unzip {} \; @@ -29,4 +35,5 @@ find . -name '*.ttf' -type f -exec mv {} TTF \; find . -name '*.otf' -type f -exec mv {} OTF \; # Recurse through all folders and subfolders and delete all empty folders -find . -type d -empty -delete \ No newline at end of file +find . -type d -empty -delete +touch .setup_complete \ No newline at end of file