We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05341c1 commit 1ea344bCopy full SHA for 1ea344b
helpers/update-version.sh
@@ -27,9 +27,13 @@ if [ $? -ne 0 ]; then
27
exit 1
28
fi
29
30
-if [ $? -eq 0 ]; then
31
- echo "Version updated to $NEW_VERSION in $FILE"
32
-else
33
- echo "Failed to update version in $FILE"
+# Update copyright end year if needed
+CURRENT_YEAR=$(date +%Y)
+# This will match lines like: // @copyright 2023–2025
+sed -i '' -E "s|(// @copyright[[:space:]]+[0-9]{4})–[0-9]{4}|\1–$CURRENT_YEAR|" "$FILE"
34
+if [ $? -ne 0 ]; then
35
+ echo "Failed to update copyright year. Aborting."
36
37
38
+
39
+echo "Version updated to $NEW_VERSION and copyright year set to $CURRENT_YEAR in $FILE"
0 commit comments