Updated textInfo message on extra712

This commit is contained in:
Toni de la Fuente
2020-04-20 19:27:39 +02:00
parent 0c7805356e
commit d6374f8bc8

View File

@@ -23,7 +23,7 @@ extra712(){
for regx in $REGIONS; do
MACIE_MEMBER_ACCOUNTS=$($AWSCLI macie list-member-accounts $PROFILE_OPT --region $regx --output text --query 'memberAccounts[*]' 2>&1)
if [[ ${MACIE_MEMBER_ACCOUNTS} == *${MACIE_NOT_SUPPORTED}* ]];then
textInfo "Macie is not supported in the $regx AWS Regions"
textInfo "$regx: Amazon Macie is not supported in $regx" "$regx"
elif [[ ${MACIE_MEMBER_ACCOUNTS} == *${MACIE_NOT_ENABLED}* ]];then
textFail "$regx: Amazon Macie is not enabled!" "$regx"
else