depot/pkgs/by-name/ha/haredo/001-use-nix-store-sh.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

20 lines
762 B
Diff

diff --git a/src/haredo.ha b/src/haredo.ha
index c2e56e6..304c9ad 100644
--- a/src/haredo.ha
+++ b/src/haredo.ha
@@ -280,12 +280,12 @@ fn try_do(
const tmpfilepath = strings::concat(ctx.tmpdir, "/", tmpfilename);
const cmd = if (ctx.verbose) {
- fmt::errorln("* sh -ev", dopaths.do, dopaths.target,
+ fmt::errorln("* @bash@/bin/sh -ev", dopaths.do, dopaths.target,
dopaths.basename, tmpfilepath)?;
- yield exec::cmd("sh", "-ev", dopaths.do, dopaths.target,
+ yield exec::cmd("@bash@/bin/sh", "-ev", dopaths.do, dopaths.target,
dopaths.basename, tmpfilepath)?;
} else {
- yield exec::cmd("sh", "-e", dopaths.do, dopaths.target,
+ yield exec::cmd("@bash@/bin/sh", "-e", dopaths.do, dopaths.target,
dopaths.basename, tmpfilepath)?;
};