Make it work in FreeBSD issue #310

This commit is contained in:
Toni de la Fuente
2019-04-08 21:18:39 -04:00
parent ddad72fc5f
commit a2ccac97d9

View File

@@ -13,7 +13,7 @@
# Functions to manage dates depending on OS
if [ "$OSTYPE" == "linux-gnu" ] || [ "$OSTYPE" == "linux-musl" ]; then
if [ "$OSTYPE" == "linux-gnu" ] || [ "$OSTYPE" == "linux-musl" ] || ["$OSTYPE" == "freebsd" ]; then
TEMP_REPORT_FILE=$(mktemp -t -p /tmp prowler.cred_report-XXXXXX)
# function to compare in days, usage how_older_from_today date
# date format %Y-%m-%d