summaryrefslogtreecommitdiffstats
path: root/upgpkg
diff options
context:
space:
mode:
Diffstat (limited to 'upgpkg')
-rwxr-xr-xupgpkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/upgpkg b/upgpkg
index 2c3f677..1c58296 100755
--- a/upgpkg
+++ b/upgpkg
@@ -7,7 +7,7 @@
# I place this script in the public domain.
-VERSION=0.5
+VERSION=0.6
# from makepkg
unset ALL_OFF BOLD BLUE GREEN RED YELLOW
@@ -100,7 +100,7 @@ if [[ $(vercmp $1 $pkgver) -le 0 ]]; then
warn "New version (%s) older or equal to current %s" "$1" "$pkgver"
fi
-sed -i "s/pkgver=.*$/pkgver=$1/g" PKGBUILD
+sed -i "s/pkgver=.*$/pkgver=$_newpkgver/g" PKGBUILD
sed -i "s/pkgrel=.*$/pkgrel=1/g" PKGBUILD
makepkg -g || exit 1
# replace the first checksum line with all checksums, remove all other checksums