From d92fcb0ab2a679c43c106a5f9832050450110735 Mon Sep 17 00:00:00 2001 From: Louwrentius Date: Sun, 1 Mar 2009 21:18:52 +0000 Subject: [PATCH] update --- branches/distributed-ppss/ppss.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/branches/distributed-ppss/ppss.sh b/branches/distributed-ppss/ppss.sh index e0ce6c1..2f267fe 100755 --- a/branches/distributed-ppss/ppss.sh +++ b/branches/distributed-ppss/ppss.sh @@ -780,11 +780,14 @@ upload_item () { if [ "$SECURE_COPY" == "1" ] then #scp -q $SSH_OPTS $SSH_KEY $PPSS_LOCAL_OUTPUT/"$ITEM"/* $USER@$SSH_SERVER:$REMOTE_OUTPUT_DIR - scp $SSH_OPTS $SSH_KEY $ITEM $USER@$SSH_SERVER:$REMOTE_OUTPUT_DIR >> HOEBA 2>&1 + scp -q $SSH_OPTS $SSH_KEY $ITEM $USER@$SSH_SERVER:$REMOTE_OUTPUT_DIR ERROR="$?" if [ ! "$ERROR" == "0" ] then log DEBUG "ERROR - uploading of $ITEM failed." + else + log DEBUG "Upload of item $ITEM success" + rm $ITEM fi else cp "$PPSS_LOCAL_OUTPUT/$ITEM" $REMOTE_OUTPUT_DIR