about summary refs log tree commit diff
path: root/pkgs/by-name/ha/haredo/001-use-nix-store-sh.patch
blob: 4bd6507d7ea45bb82bcab2ed1068ec6c0eee7771 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)?;
 	};