summaryrefslogtreecommitdiff
path: root/bumpVersion
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-11-25 09:04:37 +0100
committerErich Eckner <git@eckner.net>2020-11-25 09:04:37 +0100
commit1f493adbb33776baae2dd922c0c17b75b74da943 (patch)
tree21fe50678f05f45708747cc07b137119e9b1ba4c /bumpVersion
parent9b0a4acb3e4138c8e868a08129c7b2960d376178 (diff)
downloadarchlinuxewe-1f493adbb33776baae2dd922c0c17b75b74da943.tar.xz
bumpVersion: do not blinly `eval` error messages from `checkVersion -m`
Diffstat (limited to 'bumpVersion')
-rwxr-xr-xbumpVersion5
1 files changed, 4 insertions, 1 deletions
diff --git a/bumpVersion b/bumpVersion
index afa199b08..5b6371cdb 100755
--- a/bumpVersion
+++ b/bumpVersion
@@ -101,7 +101,10 @@ paket="${1%/}"
cd "${myDir}"
[ -r "${paket}/PKGBUILD" ] || exit 1
-vers="$(./checkVersions -m "${paket}" ${check_version_cache_option})"
+if ! vers="$(./checkVersions -m "${paket}" ${check_version_cache_option})"; then
+ >&2 echo 'checkVersion returned non-zero'
+ exit 1
+fi
[ -n "${remVer}" ] && vers="$(echo "${vers}" | grep -v 'remVer')"
eval ${vers}
if [ "${remVer}" == "${pkgver}" ]; then