diff options
| author | tv <tv@krebsco.de> | 2026-11-20 04:42:10 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-20 04:42:10 +0000 |
| commit | 2aa54d9cb0399371a72a768cb5657a2bfebfde9e (patch) | |
| tree | bcde33db3c3f07b0eec80e1f365c81de2cf0ad61 /pkgs/populate/src/shell.rs | |
| parent | 7e4597a38a29f66fd8bbc7415973caeaa9442bde (diff) | |
populate: run shell code with /bin/sh
populate runs shell code on the deploying machine and on the target with
/bin/sh, so neither needs a shell in PATH, as the PATH a CI job runs
populate with may lack one.
Diffstat (limited to 'pkgs/populate/src/shell.rs')
| -rw-r--r-- | pkgs/populate/src/shell.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/populate/src/shell.rs b/pkgs/populate/src/shell.rs index befd4aa..4093ed7 100644 --- a/pkgs/populate/src/shell.rs +++ b/pkgs/populate/src/shell.rs @@ -32,7 +32,7 @@ pub fn shell(options: ShellOptions) -> ExitCode { words.push("sudo".to_string()); } words.extend([ - "/bin/sh".to_string(), + run::SH.to_string(), "-c".to_string(), options.script, "sh".to_string(), |
