From a9af37e38576a0b6153008282c587f8a4414c7d1 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Wed, 12 Nov 2025 13:47:21 -0300 Subject: [PATCH] feat(installer): add dummy command to prevent empty shell execution The change adds `arg("true")` to the shell command to prevent executing an empty shell command when a component is already running. This ensures a valid command is always passed to the shell, avoiding potential issues with empty command execution. --- src/package_manager/installer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/package_manager/installer.rs b/src/package_manager/installer.rs index 66ad38209..f50b97441 100644 --- a/src/package_manager/installer.rs +++ b/src/package_manager/installer.rs @@ -674,7 +674,7 @@ impl PackageManager { if check_status.is_ok() && check_status.unwrap().success() { trace!("Component {} is already running", component.name); - return Ok(std::process::Command::new("sh").arg("-c").spawn()?); + return Ok(std::process::Command::new("sh").arg("-c").arg("true").spawn()?); } // If not running, execute the main command