From e81f356908fe38ec45c74cf822dd102efbcf6457 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 20 Aug 2025 14:31:34 +0300 Subject: Add spawn-sh, spawn-at-startup-sh Our top 10 most confusing config moments --- src/utils/spawning.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/utils/spawning.rs') diff --git a/src/utils/spawning.rs b/src/utils/spawning.rs index a6f516db..61912eae 100644 --- a/src/utils/spawning.rs +++ b/src/utils/spawning.rs @@ -83,6 +83,16 @@ pub fn spawn + Send + 'static>(command: Vec, token: Option) { + spawn(vec![String::from("sh"), String::from("-c"), command], token); +} + fn spawn_sync( command: impl AsRef, args: impl IntoIterator>, -- cgit