summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeffreytse2021-06-08 18:31:00 +0800
committerjeffreytse2021-06-08 18:31:00 +0800
commite2547c19704c1cee3ea5151ae7655b8872a153dc (patch)
treec7858fa698500bfe8d3b36186cfb567c37a3888d
parent93575ebbaaa55b4a91873af7d9422f3004737a2c (diff)
downloadaur-e2547c19704c1cee3ea5151ae7655b8872a153dc.tar.gz
fix: wrong pkgver in the release script
-rwxr-xr-xrelease8
1 files changed, 4 insertions, 4 deletions
diff --git a/release b/release
index 080db8b9711..f2aa9b03e27 100755
--- a/release
+++ b/release
@@ -7,11 +7,11 @@ if [ -z $1 ]; then
exit 1;
fi
-if [[ ${pkgver:0:1} != 'v' ]]; then
- pkgver="v$pkgver"
+if [[ ${pkgver:0:1} == 'v' ]]; then
+ pkgver=${pkgver:1}
fi
-filename="$pkgver.tar.gz"
+filename="v$pkgver.tar.gz"
echo 'Downlading archive file...'
@@ -38,7 +38,7 @@ echo
case "$REPLY" in
y|Y)
git add PKGBUILD .SRCINFO
- git commit -m "release: $pkgver"
+ git commit -m "release: v$pkgver"
echo 'Release AUR package successfully!'
;;
esac