mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 05:40:08 +00:00
aws: fix array assignment in asp function
Older zsh versions require this syntax change. Fixes #8525
This commit is contained in:
parent
05a38c8b99
commit
dcffc89580
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@ function asp() {
|
|||
return
|
||||
fi
|
||||
|
||||
local available_profiles=($(aws_profiles))
|
||||
local -a available_profiles
|
||||
available_profiles=($(aws_profiles))
|
||||
if [[ -z "${available_profiles[(r)$1]}" ]]; then
|
||||
echo "${fg[red]}Profile '$1' not found in '${AWS_CONFIG_FILE:-$HOME/.aws/config}'" >&2
|
||||
echo "Available profiles: ${(j:, :)available_profiles:-no profiles found}${reset_color}" >&2
|
||||
|
|
Loading…
Reference in a new issue