From a33f87d0b0641ad7870c87bdcb3cef006b4d549a Mon Sep 17 00:00:00 2001 From: louwrentius Date: Sat, 31 Dec 2011 00:05:14 +0000 Subject: [PATCH] version 2.97 --- ppss | 11 +++++++++-- ppss-wav2mp3.cfg | 4 ++-- wav2mp3.sh | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ppss b/ppss index 58f8f50..352f030 100755 --- a/ppss +++ b/ppss @@ -1643,8 +1643,15 @@ download_item () { fi log DEBUG "Exit code of remote download transfer is $?" else - cp "$ITEM" $PPSS_LOCAL_TMPDIR - log DEBUG "Exit code of local transfer is $?" + if [[ "$TRAVERSAL" == "1" ]] + then + mkdir -p "$PPSS_LOCAL_TMPDIR/$LOCAL_DIR" + cp "$DOWNLOAD_ITEM" "$PPSS_LOCAL_TMPDIR/$LOCAL_DIR" + log DEBUG "Exit code of local transfer is $?" + else + cp "$DOWNLOAD_ITEM" "$PPSS_LOCAL_TMPDIR/" + log DEBUG "Exit code of local transfer is $?" + fi fi else log DEBUG "No transfer of item $ITEM to local workpath." diff --git a/ppss-wav2mp3.cfg b/ppss-wav2mp3.cfg index 9111dd7..0c7a6dd 100644 --- a/ppss-wav2mp3.cfg +++ b/ppss-wav2mp3.cfg @@ -9,6 +9,6 @@ USER=ppss SCRIPT=wav2mp3.sh RANDOMIZE=1 DOWNLOAD_TO_NODE=0 -UPLOAD_TO_SERVER=1 -SECURE_COPY=0 +UPLOAD_TO_SERVER=0 +SECURE_COPY=1 PPSS_DEBUG=1 diff --git a/wav2mp3.sh b/wav2mp3.sh index 23749ad..5608854 100755 --- a/wav2mp3.sh +++ b/wav2mp3.sh @@ -8,7 +8,7 @@ TYPE=`file -b "$SRC"` RES=`echo "$TYPE" | grep "WAVE audio"` if [ ! "$?" == "0" ] then - echo "File $FILE is not a wav file..." + echo "File $SRC is not a wav file..." echo "Type is $TYPE" exit 0 fi