From 3729a6515617abdae03117d9713dfeb7e1ff74c2 Mon Sep 17 00:00:00 2001 From: Yoav Amit Date: Mon, 6 Jul 2026 17:24:03 -0400 Subject: [PATCH] fix(setup): fix syntax error in seed-local-community.sh (#1547) --- scripts/seed-local-community.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/seed-local-community.sh b/scripts/seed-local-community.sh index 9a79761c2..41ff403d0 100755 --- a/scripts/seed-local-community.sh +++ b/scripts/seed-local-community.sh @@ -67,7 +67,11 @@ for h in hosts: if not seen: raise SystemExit("could not derive a host from RELAY_URL") -print(",\n".join(f" ('{h.replace("'", "''")}')" for h in seen)) +lines = [] +for h in seen: + escaped = h.replace(chr(39), chr(39) * 2) + lines.append(f" ('{escaped}')") +print(",\n".join(lines)) PY )