Fix at-login check for AWS creds for zsh users
@@ -101,7 +101,7 @@ function _check_creds()
if [ -n "${accounts["$line"]+is_set}" ]; then
if [ -n "$ZSH_NAME" ]; then
# zsh syntax for unset requires quotes on associative array keys, which would break bash
- unset 'accounts["$line"]'
+ unset "accounts[\"$line\"]"
else
unset accounts["$line"]
fi
