]> granicus.if.org Git - curl/commitdiff
if the cvs update fails, don't continue further
authorDaniel Stenberg <daniel@haxx.se>
Thu, 20 Mar 2003 14:38:42 +0000 (14:38 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 20 Mar 2003 14:38:42 +0000 (14:38 +0000)
testcurl.sh

index 3917d5dac5957cd70cc9b417abef3242f356c37c..79d1b32b3627f90217632eeee793040315469275 100755 (executable)
@@ -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"