version 2.97

This commit is contained in:
louwrentius 2011-12-31 00:05:14 +00:00
parent eb61175bf4
commit a33f87d0b0
3 changed files with 12 additions and 5 deletions

11
ppss
View File

@ -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."

View File

@ -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

View File

@ -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