From 1390fd848752388200f4ef8918c3a5afe671905d Mon Sep 17 00:00:00 2001 From: ziadarafat Date: Thu, 26 Nov 2026 02:07:25 -0700 Subject: [PATCH] music-audit: fix the completion check that could never fire pgrep -f music-identify matched the ssh command line carrying that very string, so the 'still running' branch was always true and the follow-up would wait for ever. Bracket the pattern (music-[i]dentify) so pgrep cannot match itself. --- tools/music-audit/followup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/music-audit/followup.sh b/tools/music-audit/followup.sh index 390a78e..a058f7f 100755 --- a/tools/music-audit/followup.sh +++ b/tools/music-audit/followup.sh @@ -32,7 +32,7 @@ mkdir -p "$(dirname "$STATE")" "$(dirname "$LOG")" [ -f "$STATE" ] && exit 0 # Still working? (FORCE=1 skips this, for testing the report path) -if [ "${FORCE:-0}" != "1" ] && ssh -o BatchMode=yes -o ConnectTimeout=10 "$SSH_HOST" 'pgrep -f music-identify >/dev/null' 2>/dev/null; then +if [ "${FORCE:-0}" != "1" ] && ssh -o BatchMode=yes -o ConnectTimeout=10 "$SSH_HOST" 'pgrep -f "music-[i]dentify" >/dev/null' 2>/dev/null; then exit 0 fi