aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Markus Mayer <mmayer@broadcom.com>2019-04-09 15:05:15 -0700
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-04-10 07:45:30 +0200
commit09cb4ea933c7adec1e5074637befb8d1ce87015a (patch)
tree89deebb0aafd0ea4d47d0dec91a706705b6d1c48
parent10a6ea5a305015b6cf7b13591e2e56ba4b75a932 (diff)
downloadbuildroot-09cb4ea933c7adec1e5074637befb8d1ce87015a.tar.gz
buildroot-09cb4ea933c7adec1e5074637befb8d1ce87015a.tar.bz2
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 <mmayer@broadcom.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rwxr-xr-xsupport/dependencies/dependencies.sh3
1 files changed, 1 insertions, 2 deletions
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
;;