Iterate over each folder.
and also update the .setup_complete bits.
This commit is contained in:
parent
a169586df5
commit
6ef0940881
2 changed files with 50 additions and 1 deletions
|
|
@ -1,5 +1,12 @@
|
|||
#! /bin/zsh
|
||||
|
||||
#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
|
||||
|
||||
|
||||
#if current working directory is named font_files or custom_fonts, exit
|
||||
if [[ $PWD == *"font_files" ]] || [[ $PWD == *"custom_fonts" ]]; then
|
||||
echo "You are in the wrong directory. Please move to the individual font folder."
|
||||
|
|
@ -29,4 +36,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