update the prep script

This commit is contained in:
Matt Troutman 2024-09-27 10:24:15 -05:00
parent 6443deee57
commit 038db25c44
No known key found for this signature in database

View file

@ -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
find . -type d -empty -delete
touch .setup_complete