summaryrefslogtreecommitdiff
path: root/bin/build-rpm-package
diff options
context:
space:
mode:
Diffstat (limited to 'bin/build-rpm-package')
-rwxr-xr-xbin/build-rpm-package2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index afc8f4e..d33274d 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -133,7 +133,7 @@ check_mock_version_atleast () {
# Only accept a string that has number.number.number somewhere.
MOCK_VER="$(grep -Eo '[0-9]+\.[0-9]+\.[0-9]+' <<< "${MOCK_VER}")"
- if [ -n "${MOCK_VER}" ]; then
+ if [ -z "${MOCK_VER}" ]; then
echo "Error: the reported mock version can not be handled by ${FUNCNAME}()." >&2
exit -1
fi