Skip to content

Commit

Permalink
Add script to help upgrade templ
Browse files Browse the repository at this point in the history
  • Loading branch information
Piszmog committed May 7, 2024
1 parent ed6931c commit a779e60
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions upgrade_templ.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

if [ "$#" -ne 2 ]; then
echo "Usage: $0 <old version> <new version>"
exit 1
fi

old_version="$1"
new_version="$2"

LC_CTYPE=C find . \( -path "./dist" -o -path "./.git" \) -prune -o -type f ! -name ".DS_Store" -exec sed -i '' -e "s/$old_version/$new_version/g" {} \;

0 comments on commit a779e60

Please sign in to comment.