diff --git a/skills/poteto-mode/scripts/worktree-audit.sh b/skills/poteto-mode/scripts/worktree-audit.sh index e01f2b3..8e7317d 100755 --- a/skills/poteto-mode/scripts/worktree-audit.sh +++ b/skills/poteto-mode/scripts/worktree-audit.sh @@ -104,7 +104,7 @@ git worktree list --porcelain | awk '/^worktree /{print $2}' | while read -r wt; # followed by "/" or a quote so glint-482 does not match glint-482-r37. last="-"; last_ts=0 if [ -d "$transcripts" ]; then - f=$(rg -l -e "${wt}/" -e "${wt}\"" "$transcripts" 2>/dev/null \ + f=$(rg -l -a -e "${wt}/" -e "${wt}\"" "$transcripts" 2>/dev/null \ | xargs stat -f '%m %N' 2>/dev/null | sort -rn | head -1) if [ -n "$f" ]; then last_ts=$(echo "$f" | awk '{print $1}') last=$(date -r "$last_ts" '+%Y-%m-%d' 2>/dev/null); fi