Skip to content

Commit

Permalink
base-files: ensure VERBOSE is set
Browse files Browse the repository at this point in the history
If not set, it shows the following error
sh: out of range

Signed-off-by: Alexander Couzens <[email protected]>
  • Loading branch information
lynxis committed Apr 20, 2020
1 parent 36f6289 commit b77fd0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/base-files/files/lib/upgrade/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ask_bool() {
}

v() {
[ "$VERBOSE" -ge 1 ] && echo "$@"
[ -n "$VERBOSE" ] && [ "$VERBOSE" -ge 1 ] && echo "$@"
}

json_string() {
Expand Down

0 comments on commit b77fd0d

Please sign in to comment.