diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-03-28T19·29+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-03-28T19·29+0000 |
commit | 3a2bbe7f8ad7ec8b2896ff5e666b8f5525691c6f (patch) | |
tree | 6c0b4a12f499f2cb6d1c0cc0f199cad0239b1566 /tests | |
parent | 7fb548aa2621375559f980b4627955dbc6fe9914 (diff) |
* Simplify communication with the hook a bit (don't use file
descriptors 3/4, just use stdin/stderr).
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/build-hook.hook.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/build-hook.hook.sh b/tests/build-hook.hook.sh index 45536f8de343..18eba283e11d 100755 --- a/tests/build-hook.hook.sh +++ b/tests/build-hook.hook.sh @@ -11,11 +11,11 @@ outPath=$(sed 's/Derive(\[("out",\"\([^\"]*\)\".*/\1/' $drv) echo "output path is $outPath" >&2 if $(echo $outPath | grep -q input-1); then - echo "accept" >&3 - read x <&4 + echo "# accept" >&2 + read x echo "got $x" mkdir $outPath echo "BAR" > $outPath/foo else - echo "decline" >&3 + echo "# decline" >&2 fi |