addet correct show options

This commit is contained in:
pika 2025-03-26 16:44:10 +01:00
parent 4647949a2a
commit cc04f6d907

View file

@ -95,8 +95,12 @@ proxy() {
case "$1" in
--show)
echo "These are your proxy configurations:"
echo "http: ${http_proxy}, HTTP: ${HTTP_PROXY}"
echo "https: ${https_proxy}, HTTPS: ${HTTPS_PROXY}"
if [ -n "${http_proxy}" ] || [ -n "${HTTP_PROXY}" ] || [ -n "${https_proxy}" ] || [ -n "${HTTPS_PROXY}" ]; then
echo "http: ${http_proxy}| HTTP: ${HTTP_PROXY}"
echo "https: ${https_proxy}| HTTPS: ${HTTPS_PROXY}"
else
echo "No proxy configured."
fi
;;
--set)
# ─< Check if the IP and port are reachable >─────────────────────────────────────────────