From e91175b592028e1e7caa01066a2b434c24a3d81f 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 f43c7db3c1..fbf2280385 100755 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -62,7 +62,7 @@ ask_bool() { } v() { - [ "$VERBOSE" -ge 1 ] && echo "$@" + [ -n "$VERBOSE" ] && [ "$VERBOSE" -ge 1 ] && echo "$@" } json_string() {