Skip to content

Commit

Permalink
remove unnecessary variables and removed echo
Browse files Browse the repository at this point in the history
  • Loading branch information
venky999 authored Sep 16, 2019
1 parent d5f22ab commit ecde624
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions checks/check26
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ CHECK_ALTERNATE_check206="check26"

check26(){
# "Ensure S3 bucket access logging is enabled on the CloudTrail S3 bucket (Scored)"
local CHECK_OK
local CHECK_WARN
local CHECK_CROSS_ACCOUNT_WARN

CLOUDTRAILS=$($AWSCLI cloudtrail describe-trails $PROFILE_OPT --region "$REGION" --query 'trailList[*].Name' --output text| tr '\011' '\012' | awk -F: '{print $1}')
CURRENT_ACCOUNT_ID=$($AWSCLI sts $PROFILE_OPT get-caller-identity --region "$REGION" --query Account --output text)
Expand Down Expand Up @@ -48,6 +45,6 @@ check26(){
done

else
echo "No CloudWatch group found for CloudTrail events"
textFail "No CloudWatch group found for CloudTrail events"
fi
}
}

0 comments on commit ecde624

Please sign in to comment.