From 9d90df7064bfda51d471cbf814fa732d855aafb7 Mon Sep 17 00:00:00 2001 From: Martin Schulze Date: Fri, 16 Aug 2019 19:20:19 +0200 Subject: [PATCH] Fix integer check --- test/test_helper/common.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_helper/common.bash b/test/test_helper/common.bash index 5e119f99..c8580b3e 100644 --- a/test/test_helper/common.bash +++ b/test/test_helper/common.bash @@ -7,7 +7,7 @@ NAME=tvial/docker-mailserver:testing TEST_TIMEOUT_IN_SECONDS=${TEST_TIMEOUT_IN_SECONDS-60} function repeat_until_success_or_timeout { - if ![[ "$1" ~= '^[0-9]+$' ]]; then + if ! [[ "$1" =~ ^[0-9]+$ ]]; then echo "First parameter for timeout must be an integer, recieved \"$1\"" exit 1 fi