Fix integer check

This commit is contained in:
Martin Schulze 2019-08-16 19:20:19 +02:00
parent 85fa5d242f
commit 9d90df7064

View file

@ -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