From: Markus Mayer Date: Tue, 9 Apr 2019 22:05:15 +0000 (-0700) Subject: support/dependencies/dependencies.sh: simplify an error message X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09cb4ea933c7adec1e5074637befb8d1ce87015a;p=buildroot.git support/dependencies/dependencies.sh: simplify an error message There is no need to break the "\n" sequence using "%sn". We can just escape it. Note: the escaping backslash needs to be escaped too, because the shell will process the string before printf gets to see it. Signed-off-by: Markus Mayer Signed-off-by: Peter Korsgaard --- diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh index 826874baa2..1d5c164aa6 100755 --- a/support/dependencies/dependencies.sh +++ b/support/dependencies/dependencies.sh @@ -37,8 +37,7 @@ case ":${PATH:-unset}:" in ;; (*" "*) printf "\n" - # Break the '\n' sequence, or a \n is printed (which is not what we want). - printf "Your PATH contains a newline (%sn) character.\n" "\\" + printf "Your PATH contains a newline (\\\n) character.\n" printf "This doesn't work. Fix you PATH.\n" exit 1 ;;