From 2d4d220883eec84670226493d7684b7441aa6b23 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 29 Apr 2026 18:13:23 +0900 Subject: [PATCH] fix changelog URL when minor or patch version is zero --- upgrade/upgrade.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upgrade/upgrade.sh b/upgrade/upgrade.sh index 425f632..2bc5e6a 100755 --- a/upgrade/upgrade.sh +++ b/upgrade/upgrade.sh @@ -26,8 +26,8 @@ git commit -m "Upgrade SQLite to version $VERSION" sqlite3-binding.c sqlite3-bin git push origin HEAD MAJOR=$(echo $VERSION | cut -c1) -MINOR=$(echo $VERSION | cut -c2-4 | sed 's/^0*//') -PATCH=$(echo $VERSION | cut -c5-7 | sed 's/^0*//') +MINOR=$(echo $VERSION | cut -c2-4 | sed 's/^0*\([0-9]\)/\1/') +PATCH=$(echo $VERSION | cut -c5-7 | sed 's/^0*\([0-9]\)/\1/') CHANGELOG_URL="https://www.sqlite.org/releaselog/${MAJOR}_${MINOR}_${PATCH}.html" gh pr create --title "Upgrade SQLite to version $VERSION" --body "Automated SQLite upgrade to version $VERSION