From bf5e12c8e0deb5ccb05feaaf997c59aaa255d8b3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 20 Mar 2003 14:38:42 +0000 Subject: [PATCH] if the cvs update fails, don't continue further --- testcurl.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testcurl.sh b/testcurl.sh index 3917d5dac..79d1b32b3 100755 --- a/testcurl.sh +++ b/testcurl.sh @@ -112,6 +112,11 @@ cvs -Q up -dP 2>&1 cvsstat=$? echo "testcurl: cvs returned: $cvsstat" +if [ "$cvsstat" -ne "0" ]; then + echo "testcurl: failed to update from CVS, exiting" + die +fi + # figure out the current collected CVS status newstat="../allcvs.log" oldstat="../oldcvs.log"