From 2ed0d337580044c160e15863df5dc6e27f7f70e2 Mon Sep 17 00:00:00 2001 From: pgueth Date: Fri, 4 Mar 2011 15:30:20 +0100 Subject: [PATCH] upload_workflow script works --- grid/common.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/grid/common.sh b/grid/common.sh index ab6b527..66203b6 100644 --- a/grid/common.sh +++ b/grid/common.sh @@ -42,10 +42,11 @@ sourcefile=${1:?"provide source file"} destlfn=${2:?"provide destination file lfn"} sourcefile="$(readlink -f "${sourcefile}")" # convert to absolute path test -f "${sourcefile}" || error "can't find ${sourcefile}" -file_exists ${destlfn} && ( \ - check_user "${destlfn} already exists. overwrite it?" || return 2 && \ - lcg-del -a "lfn:${destlfn}" || error "failed to delete ${destlfn}" \ -) && \ +echo "uploading ${sourcefile} to ${destlfn}" +file_exists "${destlfn}" \ + && check_user "${destlfn} already exists. overwrite it?" \ + && lcg-del -a "lfn:${destlfn}" \ + || return 2 lcg-cr -v -d ccsrm02.in2p3.fr -l "lfn:${destlfn}" "file:${sourcefile}" } @@ -53,7 +54,7 @@ lcg-cr -v -d ccsrm02.in2p3.fr -l "lfn:${destlfn}" "file:${sourcefile}" # common path used lfnbase="/grid/biomed/creatis/fgate/" lfnrelease="${lfnbase}releases/" -lfnworkflow="${lfnbase}" +lfnworkflow="${lfnbase}workflow/" lfngasw="${lfnbase}gasw/" lfnscript="${lfnbase}bin/" -- 2.47.1