From: pgueth Date: Fri, 4 Mar 2011 14:06:50 +0000 (+0100) Subject: wrote upload function X-Git-Tag: v1.4.0~194 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=e072267064da95709e11f6c7e208f30a3a37cee2;p=clitk.git wrote upload function --- diff --git a/grid/upload_release.sh b/grid/upload_release.sh index fe28c9e..9c61b42 100755 --- a/grid/upload_release.sh +++ b/grid/upload_release.sh @@ -3,7 +3,6 @@ . common.sh releasearchive="${1:?"provide path to release archive"}" -releasearchive="$(readlink -f "${releasearchive}")" # convert to absolute path test -f ${releasearchive} || error "file ${releasearchive} doesn't exist" releasename="${prefix}$(basename "${releasearchive}")" @@ -14,6 +13,4 @@ echo "releasename=${releasename}" echo "lfnrelease=${lfnrelease}" check_user || exit 2 -target="${lfnrelease}${releasename}" -file_exists ${target} && ( check_user "${target} already exists. overwrite it?" || return 0 ) -lcg-cr -v -d ccsrm02.in2p3.fr -l "lfn:${target}" "file:${releasearchive}" +upload_file "${releasearchive}" "${lfnrelease}${releasename}" && echo "success" || echo "failed"