Fixed regex in __awskeys_list function

pull/474/head
Eduardo Bellido Bellido 2015-05-20 20:49:36 +02:00
parent 172c6a0aea
commit 1172973d89
1 changed files with 1 additions and 1 deletions

View File

@ -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