aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/populate/src/shell.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-20 04:42:10 +0000
committertv <tv@krebsco.de>2026-11-20 04:42:10 +0000
commit2aa54d9cb0399371a72a768cb5657a2bfebfde9e (patch)
treebcde33db3c3f07b0eec80e1f365c81de2cf0ad61 /pkgs/populate/src/shell.rs
parent7e4597a38a29f66fd8bbc7415973caeaa9442bde (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.rs2
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(),