From a2ccac97d9cc6953863870d0d6cac5c6d0f9db62 Mon Sep 17 00:00:00 2001 From: Toni de la Fuente Date: Mon, 8 Apr 2019 21:18:39 -0400 Subject: [PATCH] Make it work in FreeBSD issue #310 --- include/os_detector | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/os_detector b/include/os_detector index 1cbb368dea1..ea37d1065f6 100644 --- a/include/os_detector +++ b/include/os_detector @@ -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