Skip to content

Commit f18cb2f

Browse files
committed
use /usr/bin/env sh for jit-tests.sh
this is more portable and ensures we can compile on systems without bash (eg *BSD)
1 parent e3b2e4b commit f18cb2f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

unison-src/builtin-tests/jit-tests.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env sh
22
set -ex
33

44
# the first arg is the path to the unison executable
@@ -8,9 +8,6 @@ if [ -z "$1" ]; then
88
exit 1
99
fi
1010

11-
# call unison with all its args quoted
12-
ucm=("$@")
13-
1411
runtime_tests_version="@unison/runtime-tests/main"
1512
echo $runtime_tests_version
1613

@@ -27,4 +24,5 @@ runtime_tests_version="$runtime_tests_version" \
2724
< unison-src/builtin-tests/jit-tests.tpl.md \
2825
> unison-src/builtin-tests/jit-tests.md
2926

30-
time "${ucm[@]}" transcript.fork -C $codebase -S $codebase unison-src/builtin-tests/jit-tests.md
27+
# call unison with all its args quoted
28+
time "$@" transcript.fork -C $codebase -S $codebase unison-src/builtin-tests/jit-tests.md

0 commit comments

Comments
 (0)