From: Joni Hahkala Date: Fri, 14 Jan 2005 10:32:09 +0000 (+0000) Subject: checking for error during copy X-Git-Tag: GLITE_RELEASE_1_2~15 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=ff45a2c3d1ec9cd7133fc45f4d796d753436ff66;p=glite-security-test-utils.git checking for error during copy --- diff --git a/bin/generate-test-certificates.sh b/bin/generate-test-certificates.sh index e64c3d3..a824568 100755 --- a/bin/generate-test-certificates.sh +++ b/bin/generate-test-certificates.sh @@ -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