update the prep script
This commit is contained in:
parent
6443deee57
commit
038db25c44
1 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue