set and unset proxy upper and lower case

This commit is contained in:
Jakobus Schürz 2020-02-27 15:39:48 +01:00
parent 51d751a8b0
commit aece5cbbf1

View file

@ -72,13 +72,12 @@ setproxy () {
source "${CONFIG}"
echo "sourced"
export PROXY_CREDS="${PROXY_USER}:${PROXY_PASS}@"
export proxy_user=$PROXY_USER
export proxy_pass=$PROXY_PASS
else
echo "${CONFIG} not existing"
export PROXY_CREDS=""
fi
export {http,https,ftp}_proxy="http://${PROXY_CREDS}${PROXY_SERVER}:${PROXY_PORT}"
export {HTTP,HTTPS,FTP}_PROXY="http://${PROXY_CREDS}${PROXY_SERVER}:${PROXY_PORT}"
}
mencfs () {
@ -197,9 +196,9 @@ ${KERBEROS_PASSWORD}
}
unsetproxy () {
unset {HTTP,HTTPS,FPT}_PROXY
unset {HTTP,HTTPS,FTP}_PROXY
unset PROXY_{CREDS,USER,PASS,SERVER,PORT}
unset {http,https,fpt}_proxy
unset {http,https,ftp}_proxy
unset proxy_{creds,user,pass,server,port}
}