setup scripts

This commit is contained in:
Matt Troutman 2024-09-27 12:17:58 -05:00
parent e1194a4877
commit 08cd03bf8f
No known key found for this signature in database
3 changed files with 34 additions and 1 deletions

View file

@ -1,5 +1,10 @@
#! /bin/zsh
#uncomment if you want to delete all .setup_complete files and process everything
#find . -name '*.setup_complete' -type f -delete
#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."
@ -41,4 +46,5 @@ find . -name '*.otf' -type f -exec mv {} OTF \;
# Recurse through all folders and subfolders and delete all empty folders
find . -type d -empty -delete
# create a .setup_complete file to indicate that the folder has been prepped
touch .setup_complete