aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2010-06-25 14:05:37 +0000
committerPeter Simons <simons@cryp.to>2010-06-25 14:05:37 +0000
commit60b632b173e633cc5346f8a5491ef637e1f78166 (patch)
treefe7ffb6c93a76eeb7a9913cbfed4bd53fc29c993 /tests
parenta0d29040f79b365598fe75d01f72d29ab538206b (diff)
tests/build-hook.hook.sh: prefer more portable `...` syntax over $(...) for running sub-shells
The /bin/sh interpreter on Solaris doesn't understand $(...) syntax for running sub-shells. Consequently, this test fails on Solaris. To remedy the situation, the script either needs to be run by /bin/bash -- which is non-standard --, or it needs to use the ancient but portable `...` syntax.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/build-hook.hook.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/build-hook.hook.sh b/tests/build-hook.hook.sh
index 18eba283e..83fa3bf78 100755
--- a/tests/build-hook.hook.sh
+++ b/tests/build-hook.hook.sh
@@ -6,11 +6,11 @@ drv=$4
echo "HOOK for $drv" >&2
-outPath=$(sed 's/Derive(\[("out",\"\([^\"]*\)\".*/\1/' $drv)
+outPath=`sed 's/Derive(\[("out",\"\([^\"]*\)\".*/\1/' $drv`
echo "output path is $outPath" >&2
-if $(echo $outPath | grep -q input-1); then
+if `echo $outPath | grep -q input-1`; then
echo "# accept" >&2
read x
echo "got $x"