ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

force `bash`, instead of user's unsupported shell (#475)

authored by

marshmallow and committed by
GitHub
97ed4bb8 14ddca41

+6 -4
+2
CHANGELOG.md
··· 25 25 problematic string is now surrounded in quotes. 26 26 - Status bar is cleaned every time after execution is completed. 27 27 - Fixed garnix docs links in documentation. 28 + - Forces `bash` instead of remote user's potentially unsupported shell. This bug 29 + was causing strange and hard to diagnose issues. 28 30 29 31 ## [v1.2.0] - 2026-03-18 30 32
+1 -1
crates/core/src/commands/noninteractive.rs
··· 39 39 let mut command = if let Some(ref target) = arguments.target { 40 40 create_sync_ssh_command(target, arguments.modifiers).await? 41 41 } else { 42 - let mut command = Command::new("sh"); 42 + let mut command = Command::new("bash"); 43 43 44 44 command.arg("-c"); 45 45
+3 -3
crates/core/src/commands/pty/mod.rs
··· 323 323 324 324 command 325 325 } else { 326 - let mut command = portable_pty::CommandBuilder::new("sh"); 326 + let mut command = portable_pty::CommandBuilder::new("bash"); 327 327 328 328 command.arg("-c"); 329 329 ··· 331 331 }; 332 332 333 333 if arguments.is_elevated() { 334 - command.arg(format!("sudo -u root -- sh -c '{command_string}'")); 334 + command.arg(format!("sudo -u root -- bash -c '{command_string}'")); 335 335 } else { 336 - command.arg(command_string); 336 + command.arg(format!("bash -c '{command_string}'")); 337 337 } 338 338 339 339 Ok(command)