Age | Commit message (Collapse) | Author |
|
|
|
'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.
|
|
the while loop loops until the value of proxyurl is none or a http*://
scheme. however, when proxyurl is set to 'none', it then gets unset here
(`proxyurl= ;`), but the following `if` block checks if it is 'none' and
fails, so we configure an empty http_proxy= in the proxy.sh profile
script. this is then read by some software, and it causes it to crash.
for instance, flatpak via glib reads `http_proxy` from the environment,
and an empty variable is illegal.
|
|
Make sure that we remove the proxy with setup-proxy none.
Also allow https proxies while at it and mock wget for testing
|
|
print usage help text to stderr on invalid option
|
|
Commit ec0c7a7 changed the sed expression for PREFIX injection but
forgot to update the scripts.
|
|
connecting to localhost
|
|
busybox wget does not support HTTP CONNECT, unconditionally install gnu
wget when proxy is set.
ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/10446
ref: https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/32
|
|
|
|
|
|
|
|
add -p for setting ROOT so we can debug this easier.
|
|
We want avoid asking questions and in the proxy case most people will
pick 'none'.
For those who needs proxy there is still a possibility to specify the
entire proxy url in one shot, rather than asking lot of questions.
|
|
|
|
|