From c9a93f0a3377b503fb7e30e308adb37143596c9d Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Fri, 20 Mar 2026 17:13:14 -0600 Subject: [PATCH] fix: rsync progress regex never matched, spamming logs during backup The regex used `$` (end-of-string anchor) instead of no anchor, so it never matched the percentage in rsync output. Every line, including empty ones, was logged instead of parsed. --- sdk/package/lib/backup/Backups.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/package/lib/backup/Backups.ts b/sdk/package/lib/backup/Backups.ts index 836844d4e..e137c657e 100644 --- a/sdk/package/lib/backup/Backups.ts +++ b/sdk/package/lib/backup/Backups.ts @@ -280,9 +280,9 @@ async function runRsync(rsyncOptions: { spawned.stdout.on('data', (data: unknown) => { const lines = String(data).replace(/\r/g, '\n').split('\n') for (const line of lines) { - const parsed = /$([0-9.]+)%/.exec(line)?.[1] + const parsed = /([0-9.]+)%/.exec(line)?.[1] if (!parsed) { - console.log(line) + if (line) console.log(line) continue } percentage = Number.parseFloat(parsed)