← back to Dw Fleet Registry
Fix overnight audit clock in noninteractive shells
c59c9f5397c60ef39eb257c7e510d0cfe03ee0cc · 2026-08-31 02:16:04 -0700 · Steve Abrams
Files touched
M run-search-audit-loop.sh
Diff
commit c59c9f5397c60ef39eb257c7e510d0cfe03ee0cc
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Mon Aug 31 02:16:04 2026 -0700
Fix overnight audit clock in noninteractive shells
---
run-search-audit-loop.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/run-search-audit-loop.sh b/run-search-audit-loop.sh
index e656369..d63e391 100755
--- a/run-search-audit-loop.sh
+++ b/run-search-audit-loop.sh
@@ -4,13 +4,13 @@ set -u
ROOT="${0:A:h}"
INTERVAL_SECONDS="${SEARCH_AUDIT_INTERVAL_SECONDS:-900}"
DURATION_SECONDS="${SEARCH_AUDIT_DURATION_SECONDS:-43200}"
-DEADLINE=$(( EPOCHSECONDS + DURATION_SECONDS ))
+DEADLINE=$(( $(date +%s) + DURATION_SECONDS ))
LOG="$ROOT/search-discovery-loop.log"
cd "$ROOT" || exit 1
print -r -- "$(date -u +%FT%TZ) loop-start interval=${INTERVAL_SECONDS}s duration=${DURATION_SECONDS}s" >> "$LOG"
-while (( EPOCHSECONDS < DEADLINE )); do
+while (( $(date +%s) < DEADLINE )); do
if node audit-search-discovery.mjs >> "$LOG" 2>&1 && node audit-seo-inputs.mjs >> "$LOG" 2>&1; then
print -r -- "$(date -u +%FT%TZ) audit-pass" >> "$LOG"
else
← eb7b964 Integrate staged collection SEO inputs into overnight audit
·
back to Dw Fleet Registry
·
(newest)