From b2ad46b6721e7d51239cdc089f7d227a2ca54860 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Sun, 20 Jun 2021 14:48:59 +0300 Subject: [PATCH] Fix cheking non-negative number --- common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.sh b/common.sh index d6dd39c..1c10d34 100644 --- a/common.sh +++ b/common.sh @@ -95,7 +95,7 @@ _check_argument_is_boolean(){ # $2 - param name _check_argument_is_non_negative_number(){ # 2>/dev/null to avoid odd output if $1 is not a number - if ! test "$1" -lt 0 2>/dev/null; then + if ! test "$1" -ge 0 2>/dev/null; then error $"Value of %s must be a non-negative number" "$2" return 1 fi