From fd4068df4c30b7a9497801cab42aecc9c7314fd0 Mon Sep 17 00:00:00 2001 From: philsmd <921533+philsmd@users.noreply.github.com> Date: Mon, 13 Jan 2020 14:29:25 +0100 Subject: [PATCH] tests: prevent -m 20510 multi error message for -m all --- tools/test.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/test.sh b/tools/test.sh index 35df022e5..594d5888c 100755 --- a/tools/test.sh +++ b/tools/test.sh @@ -3112,10 +3112,10 @@ if [ "${PACKAGE}" -eq 0 ] || [ -z "${PACKAGE_FOLDER}" ]; then if [ "${hash_type}" -eq 20510 ]; then # special case for PKZIP Master Key if [ "${MODE}" -eq 1 ]; then # if "multi" was forced we need to skip it - if [ "${HT_MIN}" -lt "${HT_MAX}" ]; then - echo "WARNING: -m 20510 = PKZIP Master Key can only be run with a single hash" - else - echo "ERROR: -m 20510 = PKZIP Master Key can only be run with a single hash" + if [ "${HT_MIN}" -eq 20510 ]; then + if [ "${HT_MAX}" -eq 20510 ]; then + echo "ERROR: -m 20510 = PKZIP Master Key can only be run with a single hash" + fi fi continue