From 12d3e6c20e04ee5755ccc23097de8b1e074c2e07 Mon Sep 17 00:00:00 2001 From: Evan Carlin Date: Tue, 10 Dec 2024 18:29:40 +0000 Subject: [PATCH] Fix #532: Fix operator precedence for curl --- rsconf/component/rsconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsconf/component/rsconf.py b/rsconf/component/rsconf.py index c850c5b0..e78fb336 100644 --- a/rsconf/component/rsconf.py +++ b/rsconf/component/rsconf.py @@ -68,7 +68,7 @@ def host_init(j2_ctx, host): if not host in y: y[host] = _passwd_entry(j2_ctx, host) pkjson.dump_pretty(y, filename=jf) - c = f'curl {j2_ctx.rsconf_db.http_host + "/index.sh" if s else ""} | install_server={j2_ctx.rsconf_db.http_host} bash -s {host}' + c = f'curl {j2_ctx.rsconf_db.http_host + ("/index.sh" if s else "")} | install_server={j2_ctx.rsconf_db.http_host} bash -s {host}' if s: return f"""Bootstrapping build server Run: