This commit is contained in:
Toni de la Fuente
2021-11-11 11:25:12 +01:00
parent 4b205e2cdd
commit 6921eaa6e9

View File

@@ -55,11 +55,14 @@ check21(){
textPass "$regx: Trail $trail is enabled for all regions" "$regx" "$trail"
fi
fi
done
fi
done
if [[ $trail_count == 0 ]]; then
textFail "$regx: No CloudTrail trails were found in the account" "$regx" "$trail"
if [[ $FILTERREGION ]]; then
textFail "$regx: No CloudTrail trails were found in the filtered region" "$regx" "$trail"
else
textFail "$regx: No CloudTrail trails were found in the account" "$regx" "$trail"
fi
fi
}
}