mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-25 21:24:46 +02:00
Fix integer check
This commit is contained in:
parent
85fa5d242f
commit
9d90df7064
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ NAME=tvial/docker-mailserver:testing
|
||||||
TEST_TIMEOUT_IN_SECONDS=${TEST_TIMEOUT_IN_SECONDS-60}
|
TEST_TIMEOUT_IN_SECONDS=${TEST_TIMEOUT_IN_SECONDS-60}
|
||||||
|
|
||||||
function repeat_until_success_or_timeout {
|
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\""
|
echo "First parameter for timeout must be an integer, recieved \"$1\""
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue