Fixed regex in __awskeys_list function

This commit is contained in:
Eduardo Bellido Bellido
2015-05-20 20:49:36 +02:00
parent 172c6a0aea
commit 1172973d89

View File

@@ -36,7 +36,7 @@ function __awskeys_get {
}
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
echo -e "Available credentials profiles:\n"
for cred in ${credentials_list}; do