From e6f1276145f45d3b45aeb11c812e1baf96788b11 Mon Sep 17 00:00:00 2001 From: Lluis Campos Date: Thu, 9 Feb 2023 11:36:39 +0100 Subject: [PATCH] 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 --- mender-convert-package | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mender-convert-package b/mender-convert-package index 5dbbaac..ad6cb7c 100755 --- a/mender-convert-package +++ b/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