Ok version with fixed file handling when using input file instead of dir
This commit is contained in:
parent
233d3ac5dc
commit
33b646319e
|
@ -894,22 +894,22 @@ are_jobs_running () {
|
|||
|
||||
download_item () {
|
||||
|
||||
ITEM_WITH_PATH="$1"
|
||||
ITEM=`basename "$ITEM"`
|
||||
ITEM="$1"
|
||||
ITEM_NO_PATH=`basename "$ITEM"`
|
||||
|
||||
if [ "$TRANSFER_TO_SLAVE" == "1" ]
|
||||
then
|
||||
log DEBUG "Transfering item $ITEM to local disk."
|
||||
log DEBUG "Transfering item $ITEM_NO_PATH to local disk."
|
||||
if [ "$SECURE_COPY" == "1" ] && [ ! -z "$SSH_SERVER" ]
|
||||
then
|
||||
scp -q $SSH_OPTS $SSH_KEY $USER@$SSH_SERVER:"$ITEM_WITH_PATH" $PPSS_LOCAL_TMPDIR
|
||||
scp -q $SSH_OPTS $SSH_KEY $USER@$SSH_SERVER:"$ITEM" $PPSS_LOCAL_TMPDIR
|
||||
log DEBUG "Exit code of remote transfer is $?"
|
||||
else
|
||||
cp "$ITEM_WITH_PATH" $PPSS_LOCAL_TMPDIR
|
||||
cp "$ITEM" $PPSS_LOCAL_TMPDIR
|
||||
log DEBUG "Exit code of local transfer is $?"
|
||||
fi
|
||||
else
|
||||
log DEBUG "No transfer of item $ITEM to local workpath."
|
||||
log DEBUG "No transfer of item $ITEM_NO_PATH to local workpath."
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -1123,8 +1123,6 @@ commando () {
|
|||
|
||||
log DEBUG "Processing item $ITEM"
|
||||
|
||||
log DEBUG "** $INPUT_FILE and $TRANSFER_TO_SLAVE - "
|
||||
|
||||
if [ "$TRANSFER_TO_SLAVE" == "0" ]
|
||||
then
|
||||
if [ -z "$SRC_DIR" ] && [ ! -z "$INPUT_FILE" ]
|
||||
|
|
Loading…
Reference in New Issue