Skip to content

Commit

Permalink
fix grep issue in use_starter script
Browse files Browse the repository at this point in the history
  • Loading branch information
toozej committed Sep 3, 2024
1 parent 80577a5 commit c1dfd15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/use_starter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ go mod edit -module=github.com/${GITHUB_USERNAME}/${NEW_PROJECT_NAME}
mv "cmd/${OLD_PROJECT_NAME}" "cmd/${NEW_PROJECT_NAME}"

# rename from $OLD_PROJECT_NAME to $NEW_PROJECT_NAME
grep -rl --exclude-dir=.git/ ${OLD_PROJECT_NAME} . | xargs sed -i "" -e "s/${OLD_PROJECT_NAME}/${NEW_PROJECT_NAME}/g"
grep --exclude-dir=.git -rl "${OLD_PROJECT_NAME}" . | xargs sed -i "" -e "s/${OLD_PROJECT_NAME}/${NEW_PROJECT_NAME}/g"

# show diff output so user can verify their changes
git diff

0 comments on commit c1dfd15

Please sign in to comment.