X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=grid%2Fcommon.sh;h=853cef92e407620b8972fb76b79c82af2da8dcc1;hb=77dfd147f4a13a5dfeb10da3a0ec72dae9090da1;hp=bb0b05b7f64771cabcf3042db11f4d180d5d90b0;hpb=daf93b65d3cb306460bb353747c2df9296f55896;p=clitk.git diff --git a/grid/common.sh b/grid/common.sh index bb0b05b..853cef9 100644 --- a/grid/common.sh +++ b/grid/common.sh @@ -44,7 +44,7 @@ sourcefile="$(readlink -f "${sourcefile}")" # convert to absolute path 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?" || exit 2 + check_user "${destlfn} already exists. overwrite it?" || return 2 lcg-del -a "lfn:${destlfn}" fi echo "lets roll"