]> Creatis software - clitk.git/commitdiff
more grid script
authorpierre gueth <pgueth@kingkong.grid.creatis.insa-lyon.fr>
Fri, 11 Mar 2011 13:07:24 +0000 (14:07 +0100)
committerDavid Sarrut <david.sarrut@creatis.insa-lyon.fr>
Thu, 20 Jun 2013 11:14:23 +0000 (13:14 +0200)
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"