autopif2.sh: fix dates with Termux GNU coreutils

This commit is contained in:
Chris Renshaw
2024-10-19 13:24:47 -03:00
committed by GitHub
parent 153aefbe57
commit 2e74733319

View File

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