Fixed regex in __awskeys_list function
parent
172c6a0aea
commit
1172973d89
|
|
@ -36,7 +36,7 @@ function __awskeys_get {
|
||||||
}
|
}
|
||||||
|
|
||||||
function __awskeys_list {
|
function __awskeys_list {
|
||||||
local credentials_list="$(egrep '^\[ *[a-zA-Z0-0_-]+ *\]$' ~/.aws/credentials)"
|
local credentials_list="$(egrep '^\[ *[a-zA-Z0-9_-]+ *\]$' ~/.aws/credentials)"
|
||||||
if [[ -n $"{credentials_list}" ]]; then
|
if [[ -n $"{credentials_list}" ]]; then
|
||||||
echo -e "Available credentials profiles:\n"
|
echo -e "Available credentials profiles:\n"
|
||||||
for cred in ${credentials_list}; do
|
for cred in ${credentials_list}; do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue