termux-packages/packages/nim/osproc.nim.patch

13 lines
598 B
Diff

diff -uNr nim-1.4.0/lib/pure/osproc.nim nim-1.4.0.mod/lib/pure/osproc.nim
--- nim-1.4.0/lib/pure/osproc.nim 2020-10-30 15:31:18.741930200 +0100
+++ nim-1.4.0.mod/lib/pure/osproc.nim 2020-10-30 15:29:53.596433900 +0100
@@ -955,7 +955,7 @@
if poEvalCommand in options:
const useShPath {.strdefine.} =
when not defined(android): "/bin/sh"
- else: "/system/bin/sh"
+ else: "@TERMUX_PREFIX@/bin/sh"
data.sysCommand = useShPath
sysArgsRaw = @[data.sysCommand, "-c", command]
assert args.len == 0, "`args` has to be empty when using poEvalCommand."