From 2e74733319fe8589af832a565bde47bcb4dcea89 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Sat, 19 Oct 2024 13:24:47 -0300 Subject: [PATCH] autopif2.sh: fix dates with Termux GNU coreutils --- module/autopif2.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/autopif2.sh b/module/autopif2.sh index 9f281d8..37bb389 100644 --- a/module/autopif2.sh +++ b/module/autopif2.sh @@ -44,7 +44,7 @@ if ! which wget >/dev/null || grep -q "wget-curl" $(which wget); then fi; fi; -if date -D '%s' -d "$(date '+%s')" 2>&1 | grep -q "bad date"; then +if date -D '%s' -d "$(date '+%s')" 2>&1 | grep -qE "bad date|invalid option"; then if ! find_busybox; then die "date broken"; else