mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
capture script start time using well supported date arguments
This commit is contained in:
4
prowler
4
prowler
@@ -147,6 +147,8 @@ else
|
||||
WHITE="[1;37m"
|
||||
fi
|
||||
|
||||
SCRIPT_START_TIME=$( date -u +"%Y-%m-%dT%H:%M:%S%z" )
|
||||
|
||||
# Functions to manage dates depending on OS
|
||||
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||
# function to compare in days, usage how_older_from_today date
|
||||
@@ -324,7 +326,7 @@ getWhoami(){
|
||||
if [[ $MODE == "csv" ]]; then
|
||||
CALLER_ARN=$($AWSCLI sts get-caller-identity --output json --profile $PROFILE --region $REGION --query "Arn" | tr -d '"')
|
||||
textTitle "0.0" "Show report generation info"
|
||||
textNotice "ARN: $CALLER_ARN TIMESTAMP: $(date -Is)"
|
||||
textNotice "ARN: $CALLER_ARN TIMESTAMP: $SCRIPT_START_TIME"
|
||||
else
|
||||
echo ""
|
||||
echo "This report is being generated using credentials below:"
|
||||
|
||||
Reference in New Issue
Block a user