From 3a2bbe7f8ad7ec8b2896ff5e666b8f5525691c6f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 28 Mar 2009 19:29:55 +0000 Subject: * Simplify communication with the hook a bit (don't use file descriptors 3/4, just use stdin/stderr). --- tests/build-hook.hook.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/build-hook.hook.sh') 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 -- cgit 1.4.1