From 43918cfcfefa1f313a37549ff641c1f78e61e5f5 Mon Sep 17 00:00:00 2001 From: Hemed Gur-Ary Date: Mon, 21 Aug 2017 23:44:34 +0300 Subject: [PATCH] removed printCurrentDate() and added current date to banner --- prowler | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/prowler b/prowler index 0fde9081..cb04a8d9 100755 --- a/prowler +++ b/prowler @@ -335,6 +335,7 @@ prowlerBanner() { echo -e " | |_) | | | (_) \ V V /| | __/ |" echo -e " | .__/|_| \___/ \_/\_/ |_|\___|_|" echo -e " |_|$NORMAL$BLUE CIS based AWS Account Hardening Tool$NORMAL\n" + echo -e "$YELLOW Date: $(date)" } # Get whoami in AWS, who is the user running this shell script @@ -381,10 +382,6 @@ getWhoami(){ fi } -printCurrentDate(){ - textNotice "Date: $(date)" -} - printColorsCode(){ if [[ $MONOCHROME -eq 0 ]]; then echo -e "\nColors Code for results: $NOTICE INFORMATIVE$NORMAL,$OK OK (RECOMMENDED VALUE)$NORMAL, $BAD WARNING (FIX REQUIRED)$NORMAL \n" @@ -1580,8 +1577,7 @@ callCheck(){ ### All functions defined above ... run the workflow if [[ $MODE != "csv" ]]; then - prowlerBanner - printCurrentDate + prowlerBanner printColorsCode fi getWhoami