diff options
author | Erich Eckner <git@eckner.net> | 2017-09-25 11:04:07 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-25 11:04:07 +0200 |
commit | 9f13a8cde82ce93e51f179ae86514c01064453fc (patch) | |
tree | 0b61f4093191338b70dc814c0f229007849a2c6f /bumpVersion | |
parent | 10c4031f221ba82d289aec14129e29556f7059c4 (diff) | |
download | archlinuxewe-9f13a8cde82ce93e51f179ae86514c01064453fc.tar.xz |
bumpVersion: be more strict with variable names to not override unwanted variables, too
Diffstat (limited to 'bumpVersion')
-rwxr-xr-x | bumpVersion | 4 |
1 files changed, 2 insertions, 2 deletions
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 |