From 40d56e79f1c9fbbddf7541d2519035e9d265a880 Mon Sep 17 00:00:00 2001 From: Ash Davies <3853061+DrizzlyOwl@users.noreply.github.com> Date: Mon, 19 Feb 2024 17:09:48 +0000 Subject: [PATCH] Switch to using gdate for unix compatibility --- kv-secret-scan.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kv-secret-scan.sh b/kv-secret-scan.sh index 09198ca..e1b8233 100755 --- a/kv-secret-scan.sh +++ b/kv-secret-scan.sh @@ -2,8 +2,8 @@ set -e TZ=Europe/London -TODAY=$(date -Idate) -DATE_90=$(date -Iseconds -v+90d) +TODAY=$(gdate -Idate) +DATE_90=$(gdate --date="90 days ago" +"%Y-%m-%d") SILENT=0 NOTIFY=1