removed printCurrentDate() and added current date to banner

This commit is contained in:
Hemed Gur-Ary
2017-08-21 23:44:34 +03:00
parent 0e0f3a334e
commit 43918cfcfe

View File

@@ -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