From: pierre gueth Date: Fri, 11 Mar 2011 13:07:24 +0000 (+0100) Subject: more grid script X-Git-Tag: v1.4.0~185 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=77dfd147f4a13a5dfeb10da3a0ec72dae9090da1;p=clitk.git more grid script --- 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"