]> git.droids-corp.org - git-central.git/commitdiff
Fix test-lib bug not &&'ing together the exit code for multiple update scripts.
authorStephen Haberman <stephen@exigencecorp.com>
Sun, 24 Aug 2008 20:58:11 +0000 (15:58 -0500)
committerStephen Haberman <stephen@exigencecorp.com>
Sun, 24 Aug 2008 20:58:11 +0000 (15:58 -0500)
tests/test-lib.sh

index f88ad665edf641a6b90d5a1cd8e3a0a34e70aec6..16099b7c96d3ba7546bc0562ea446703d5eb8ba6 100644 (file)
@@ -466,8 +466,9 @@ install_update_hook () {
        echo "#!/bin/sh" >$hook
        for ((i=1;i<=$#;i+=1)); do
                eval script_name="$"$i
-               echo "../../../../server/$script_name \$1 \$2 \$3" >>$hook
+               echo "../../../../server/$script_name \$1 \$2 \$3 &&" >>$hook
        done
+       echo "echo >/dev/null" >>$hook
 
        chmod +x $hook
 }