From e072267064da95709e11f6c7e208f30a3a37cee2 Mon Sep 17 00:00:00 2001 From: pgueth Date: Fri, 4 Mar 2011 15:06:50 +0100 Subject: [PATCH] wrote upload function --- grid/upload_release.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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" -- 2.47.1