From: Stephen Haberman <stephen@exigencecorp.com>
Date: Sun, 24 Aug 2008 20:58:11 +0000 (-0500)
Subject: Fix test-lib bug not &&'ing together the exit code for multiple update scripts.
X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=dbe5821d623eff711999a40e55311e0341f86dd2;p=git-central.git

Fix test-lib bug not &&'ing together the exit code for multiple update scripts.
---

diff --git a/tests/test-lib.sh b/tests/test-lib.sh
index f88ad66..16099b7 100644
--- a/tests/test-lib.sh
+++ b/tests/test-lib.sh
@@ -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
 }