]> Creatis software - clitk.git/blobdiff - grid/common.sh
more grid script
[clitk.git] / grid / common.sh
index bb0b05b7f64771cabcf3042db11f4d180d5d90b0..853cef92e407620b8972fb76b79c82af2da8dcc1 100644 (file)
@@ -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"