diff options
author | Erich Eckner <git@eckner.net> | 2020-11-25 09:04:37 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-11-25 09:04:37 +0100 |
commit | 1f493adbb33776baae2dd922c0c17b75b74da943 (patch) | |
tree | 21fe50678f05f45708747cc07b137119e9b1ba4c /bumpVersion | |
parent | 9b0a4acb3e4138c8e868a08129c7b2960d376178 (diff) | |
download | archlinuxewe-1f493adbb33776baae2dd922c0c17b75b74da943.tar.xz |
bumpVersion: do not blinly `eval` error messages from `checkVersion -m`
Diffstat (limited to 'bumpVersion')
-rwxr-xr-x | bumpVersion | 5 |
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 |