Website Summary Files Commits Branches @commit @diff @stats
path: root / tools
diff options
context:
space:
mode:
Commit6144f287685df57c8a68d286e3952dbdfec0abc5 (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-05-10 17:35:56 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-05-10 17:35:56 +0300
Filesf962e52f57d6f254b0281b789d3ecd0c23659da5 /tools
it-kariera-exam-template-6144f287685df57c8a68d286e3952dbdfec0abc5.tar
it-kariera-exam-template-6144f287685df57c8a68d286e3952dbdfec0abc5.tar.gz
it-kariera-exam-template-6144f287685df57c8a68d286e3952dbdfec0abc5.zip
Parent1d98fe69fba8243ca73da7fa0ba68907bed0845e (diff)
Fixed rename project tool screwing up .git folder
1 files changed, 1 insertions, 1 deletions
-rwxr-xr-xtools/rename-project.sh2
diff --git a/tools/rename-project.sh b/tools/rename-project.sh
index eeb4e76..876432f 100755
--- a/tools/rename-project.sh
+++ b/tools/rename-project.sh
@@ -25,7 +25,7 @@ rename $(find ../ -type d -name "*$original_name*")
rename $(find ../ -type f -name "*$original_name*")
# Rename all occurences inside files
-find ../ -type f -not -path "../tools/*" -print0 | xargs -0 sed -i "s/$original_name/$new_name/g"
+find ../ -type f -not -path "../tools/*" -not -path "../.git/*" -print0 | xargs -0 sed -i "s/$original_name/$new_name/g"
# The database context is named TemplateContext by default
# A third paramter should never be given, the second check is to prevent stack overflow