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>
This commit is contained in:
parent
10a6ea5a30
commit
09cb4ea933
@ -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
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user