From ce92f32c7cb50e492ce45dded8ec2eb8b0fab78a Mon Sep 17 00:00:00 2001 From: rdrew <rdrew@upei.ca> Date: Fri, 21 Mar 2025 12:54:47 -0300 Subject: [PATCH] [nb] Edit: Olivero Sub-theme commands.md --- Olivero Sub-theme commands.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Olivero Sub-theme commands.md b/Olivero Sub-theme commands.md index 849f1d5..5aec750 100644 --- a/Olivero Sub-theme commands.md +++ b/Olivero Sub-theme commands.md @@ -110,12 +110,15 @@ find . -type f \( -name "*$OLD_THEME_LOWER*" -o -name "*$OLD_THEME_UPPER*" -o -n fi done + # Replace each case variation of OLD_THEME with corresponding NEW_THEME in file contents echo "Replacing in file contents..." find . -type f -exec sed -i '' -e "s/$OLD_THEME_LOWER_ESC/$NEW_THEME_LOWER_ESC/g" -e "s/$OLD_THEME_UPPER_ESC/$NEW_THEME_UPPER_ESC/g" -e "s/$OLD_THEME_FIRSTCAP_ESC/$NEW_THEME_FIRSTCAP_ESC/g" {} \; +rm -rf .git +git init +git add --all +git commit -m "1st" +echo "Local Git repo created" echo "Directory copied, files renamed, and contents updated successfully!" echo "New directory: '$NEW_PATH'" - - -