From 9f13a8cde82ce93e51f179ae86514c01064453fc Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 25 Sep 2017 11:04:07 +0200 Subject: bumpVersion: be more strict with variable names to not override unwanted variables, too --- bumpVersion | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bumpVersion') diff --git a/bumpVersion b/bumpVersion index d59d3f432..ea9db2677 100755 --- a/bumpVersion +++ b/bumpVersion @@ -96,8 +96,8 @@ fi cd "${paket}" -sed 's|pkgver=.*$|pkgver='"${remVer}"'|; - s|pkgrel=.*$|pkgrel=1|; +sed 's|^\(\s*\)pkgver=.*$|\1pkgver='"${remVer}"'|; + s|^\(\s*\)pkgrel=.*$|\1pkgrel=1|; s@^\s*\(sha[[:digit:]]\+sums\|md5sums\)=@sha512sums=@; /^\(sha[[:digit:]]\+\|md5\)sums_/d; '"${sedExtra}" -i PKGBUILD -- cgit v1.2.3-70-g09d2