Browse Source

fix: Print multi-line warning correctly

`log_warn` does not support multi-line strings, so only the first line
was being printed to the user.

Changelog: None
Ticket: None

Signed-off-by: Lluis Campos <lluis.campos@northern.tech>
4.0.x
Lluis Campos 2 years ago
parent
commit
e6f1276145
  1. 6
      mender-convert-package

6
mender-convert-package

@ -208,9 +208,9 @@ run_and_log_cmd "mv --force work/rootfs/data work/data"
if [[ "${MENDER_CLIENT_INSTALL}" == y ]]; then
# If the client version is less than 3.4, then log a warning
if ! minimum_required_version "3.4.0" "${MENDER_CLIENT_VERSION}"; then
log_warn "You are now installing a Mender client which does not support the " \
"bootstrap Artifact present in the image. This means that updates will not " \
"work, and your image is impossible to update"
log_warn "You are now installing a Mender client which does not support the "
log_warn "bootstrap Artifact present in the image. This means that updates will not "
log_warn "work, and your image is impossible to update"
fi
fi

Loading…
Cancel
Save