From 1f493adbb33776baae2dd922c0c17b75b74da943 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 25 Nov 2020 09:04:37 +0100 Subject: bumpVersion: do not blinly `eval` error messages from `checkVersion -m` --- bumpVersion | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bumpVersion') 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 -- cgit v1.2.3-70-g09d2