checking for error during copy
authorJoni Hahkala <joni.hahkala@cern.ch>
Fri, 14 Jan 2005 10:32:09 +0000 (10:32 +0000)
committerJoni Hahkala <joni.hahkala@cern.ch>
Fri, 14 Jan 2005 10:32:09 +0000 (10:32 +0000)
bin/generate-test-certificates.sh

index e64c3d3..a824568 100755 (executable)
@@ -518,6 +518,11 @@ for catype in $CATYPES; do
         echo "CA directory already exists: $CA_DIR"
     else
         cp -a $CONFIGDIR/${catype}-ca $CA_DIR
+       result=$?
+       if [ $result -ne 0 ];then
+           echo The copying of CA ${catype} failed with error code $result
+           exit -1
+       fi
     fi
 
     mkdir -p $CERT_DIR