Avoid login shell for Dosh sessions listing
ci / test (push) Has been cancelled
ci / remote-bench (push) Has been cancelled

This commit is contained in:
DuProcess
2026-06-12 13:59:12 -04:00
parent 83b2d9d70c
commit 4ac5d63faf
+1 -1
View File
@@ -308,7 +308,7 @@ fn run_sessions_command(
.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 remote_command = format!("sh -lc {}", shell_word(script));
let remote_command = format!("sh -c {}", shell_word(script));
let status = command
.arg(server)
.arg(remote_command)