From b77fd0d30bfa93def97fc1633d389b994600fea3 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Wed, 13 Nov 2019 18:13:13 +0100 Subject: [PATCH] base-files: ensure VERBOSE is set If not set, it shows the following error sh: out of range Signed-off-by: Alexander Couzens --- package/base-files/files/lib/upgrade/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 49c2fa0e7b..a4de7e1666 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -64,7 +64,7 @@ ask_bool() { } v() { - [ "$VERBOSE" -ge 1 ] && echo "$@" + [ -n "$VERBOSE" ] && [ "$VERBOSE" -ge 1 ] && echo "$@" } json_string() { -- 2.30.2