diff --git a/functions.sh b/functions.sh index 5c36381..feed7e8 100644 --- a/functions.sh +++ b/functions.sh @@ -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} }