aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-11-13 18:13:13 +0100
committerAlexander Couzens <lynxis@fe80.eu>2020-04-21 00:01:49 +0200
commitb77fd0d30bfa93def97fc1633d389b994600fea3 (patch)
treeaedec0c9b3c4158da5e8b56a35792e3dd868a861
parent36f628910b8bf51216004621847f3eab3a62a10c (diff)
downloadupstream-b77fd0d30bfa93def97fc1633d389b994600fea3.tar.gz
upstream-b77fd0d30bfa93def97fc1633d389b994600fea3.tar.bz2
upstream-b77fd0d30bfa93def97fc1633d389b994600fea3.zip
base-files: ensure VERBOSE is set
If not set, it shows the following error sh: out of range Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
-rw-r--r--package/base-files/files/lib/upgrade/common.sh2
1 files changed, 1 insertions, 1 deletions
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() {