summaryrefslogtreecommitdiff
path: root/setup-proxy.in
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2022-11-05 18:25:04 +0100
committerJakub Jirutka <jakub@jirutka.cz>2022-11-05 21:31:46 +0000
commitd7ae66f869e50066dd7dd4297e175b744535cb32 (patch)
tree687d70bc8e0138e7d7195bc42787c2714edf4758 /setup-proxy.in
parentf2a081f99a927faa9f7e21f7b25aa55af985fda0 (diff)
downloadalpine-conf-d7ae66f869e50066dd7dd4297e175b744535cb32.zip
replace 'echo -n' and 'echo -e' with printf
'echo -n' and 'echo -e' are not portable, not all commonly used shells support both of them (in the same way). 'echo -e' is not even defined in POSIX. https://pubs.opengroup.org/onlinepubs/009604599/utilities/echo.html: > New applications are encouraged to use printf instead of echo. > ... > Conforming applications that wish to do prompting without <newline>s > or that could possibly be expecting to echo a -n, should use the > printf utility derived from the Ninth Edition system.
Diffstat (limited to 'setup-proxy.in')
-rw-r--r--setup-proxy.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/setup-proxy.in b/setup-proxy.in
index 0c1d14c..70522d1 100644
--- a/setup-proxy.in
+++ b/setup-proxy.in
@@ -64,5 +64,9 @@ else
fi
if [ -z "$quiet" ] && [ "$proxyurl" != "none" ]; then
- echo -e "\nTo make changes active please do login again or source $PROFILE\nwith \". $PROFILE\""
+ cat <<-__EOF__
+
+ To make changes active please do login again or source $PROFILE
+ with ". $PROFILE"
+ __EOF__
fi