From: Pierre Gueth Date: Mon, 14 Mar 2011 10:04:26 +0000 (+0100) Subject: more strict X-Git-Tag: v1.4.0~184 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=fbb2143ccef1e749df3911e7cc2c3cbba8605e9c;p=clitk.git more strict --- diff --git a/grid/common.sh b/grid/common.sh index 853cef9..b221faa 100644 --- a/grid/common.sh +++ b/grid/common.sh @@ -45,10 +45,10 @@ test -f "${sourcefile}" || error "can't find ${sourcefile}" echo "uploading ${sourcefile} to ${destlfn}" if file_exists "${destlfn}"; then check_user "${destlfn} already exists. overwrite it?" || return 2 - lcg-del -a "lfn:${destlfn}" + lcg-del -a "lfn:${destlfn}" || error "lcg-del error" fi echo "lets roll" -lcg-cr -v -d ccsrm02.in2p3.fr -l "lfn:${destlfn}" "file:${sourcefile}" +lcg-cr -v -d ccsrm02.in2p3.fr -l "lfn:${destlfn}" "file:${sourcefile}" || error "lcg-cr error" }