Quote Dosh sessions remote command
ci / test (push) Has been cancelled
ci / remote-bench (push) Has been cancelled

This commit is contained in:
DuProcess
2026-06-12 13:58:16 -04:00
parent e3f61a4efb
commit 83b2d9d70c
+2 -3
View File
@@ -308,11 +308,10 @@ fn run_sessions_command(
.arg(format!("UserKnownHostsFile={}", known_hosts.display())); .arg(format!("UserKnownHostsFile={}", known_hosts.display()));
} }
let script = r#"printf 'tmux sessions:\n'; tmux ls 2>/dev/null || printf ' none\n'; printf '\nDosh service:\n'; systemctl --user --no-pager --plain status dosh-server.service 2>/dev/null | sed -n '1,8p' || pgrep -af dosh-server || printf ' not running\n'"#; let script = r#"printf 'tmux sessions:\n'; tmux ls 2>/dev/null || printf ' none\n'; printf '\nDosh service:\n'; systemctl --user --no-pager --plain status dosh-server.service 2>/dev/null | sed -n '1,8p' || pgrep -af dosh-server || printf ' not running\n'"#;
let remote_command = format!("sh -lc {}", shell_word(script));
let status = command let status = command
.arg(server) .arg(server)
.arg("sh") .arg(remote_command)
.arg("-lc")
.arg(script)
.status() .status()
.context("run remote sessions command")?; .context("run remote sessions command")?;
if !status.success() { if !status.success() {