From 071f6de9cb9671f87880d769931e9a190aa5accd Mon Sep 17 00:00:00 2001 From: philsmd Date: Fri, 15 Feb 2019 19:58:09 +0100 Subject: [PATCH] tests: fixed problem with -m 0 or -m 0-10 with new hash type range code --- tools/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test.sh b/tools/test.sh index 8526d007d..747175895 100755 --- a/tools/test.sh +++ b/tools/test.sh @@ -2682,10 +2682,10 @@ if [ "${PACKAGE}" -eq 0 -o -z "${PACKAGE_FOLDER}" ]; then HT_MIN=0 HT_MAX=0 - if echo -n ${HT} | grep -q '^[1-9][0-9]*$'; then + if echo -n ${HT} | grep -q '^[0-9]\+$'; then HT_MIN=${HT} HT_MAX=${HT} - elif echo -n ${HT} | grep -q '^[1-9][0-9]*-[1-9][0-9]*$'; then + elif echo -n ${HT} | grep -q '^[0-9]\+-[1-9][0-9]*$'; then HT_MIN=$(echo -n ${HT} | sed "s/-.*//") HT_MAX=$(echo -n ${HT} | sed "s/.*-//")