Commit 4585c666 authored by Mohamed El Mouctar Haidara's avatar Mohamed El Mouctar Haidara Committed by Marc Cornellà
Browse files

aws: really unset AWS*PROFILE variables in asp function (#7838)

parent f5f630ff
......@@ -5,13 +5,15 @@ function agp {
}
function asp {
export AWS_DEFAULT_PROFILE=$1
export AWS_PROFILE=$1
export AWS_EB_PROFILE=$1
if [[ -z "$1" ]]; then
unset AWS_DEFAULT_PROFILE AWS_PROFILE AWS_EB_PROFILE
echo AWS profile cleared.
return
fi
export AWS_DEFAULT_PROFILE=$1
export AWS_PROFILE=$1
export AWS_EB_PROFILE=$1
}
function aws_change_access_key {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment