using printf to embed newline
@@ -1769,12 +1769,10 @@ _verify_vars() {
_verify_hook_line_endings() {
local files
if files=$(grep --files-with-matches $'\r' "$PLAN_CONTEXT"/hooks/* 2>/dev/null); then
- local e
- e="Incorrect CR+LF line ending detected in package hook file(s)."
+ local e="Incorrect CR+LF line ending detected in package hook file(s)."
e="$e For the Plan to build, you must first convert these to Unix LF."
e="$e See https://en.wikipedia.org/wiki/Newline#Conversion_between_newline_formats"
- e="$e
-$files"
+ e=$(printf "%s\n%s" "$e" "$files")
exit_with "$e" 1
fi
}
