diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-10-16 07:39:40 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-10-17 15:55:54 +0200 |
commit | 2fcabe372c86feadde4aa3d74da1aa5f7552810a (patch) | |
tree | ad0e0cde3e8043d43d814f0c7439da1258e27422 /scripts/libptxdist.sh | |
parent | fe3cadd8876b98b3996f04362bc33f35ac896b84 (diff) | |
download | ptxdist-2fcabe372c86feadde4aa3d74da1aa5f7552810a.tar.gz ptxdist-2fcabe372c86feadde4aa3d74da1aa5f7552810a.tar.xz |
ptxd_warning: allow multi-line warnings and backslash escapes
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/libptxdist.sh')
-rw-r--r-- | scripts/libptxdist.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh index 2153e510e..2e71aaf9d 100644 --- a/scripts/libptxdist.sh +++ b/scripts/libptxdist.sh @@ -674,7 +674,10 @@ export -f ptxd_pedantic # ${PTXDIST_LOG_PROMPT}: to be printed before message # ptxd_warning() { - echo "${PTXDIST_LOG_PROMPT}warning: $1" >&2 + while [ $# -gt 0 ]; do + echo -e "${PTXDIST_LOG_PROMPT}warning: $1" >&2 + shift + done } export -f ptxd_warning |