From 64edfe79c1d78b2e3429d2b2c7929a1212c37290 Mon Sep 17 00:00:00 2001 From: Louwrentius Date: Sun, 22 Mar 2009 18:06:30 +0000 Subject: [PATCH] Fixes almost complete, more testing needed --- ppss.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ppss.sh b/ppss.sh index ec70816..352ab03 100755 --- a/ppss.sh +++ b/ppss.sh @@ -1074,7 +1074,7 @@ get_item () { # Gives a status update on the current progress.. PERCENT=$((100 * $ARRAY_POINTER / $SIZE_OF_ARRAY )) log INFO "Currently $PERCENT percent complete. Processed $ARRAY_POINTER of $SIZE_OF_ARRAY items." - #echo -en "\033[1A" + echo -en "\033[1A" # Check if all items have been processed. if [ "$ARRAY_POINTER" -ge "$SIZE_OF_ARRAY" ] @@ -1146,9 +1146,6 @@ commando () { ITEM="$1" DIRNAME=`dirname "$ITEM"` - echo - echo "DIRNAME IS $DIRNAME" - echo ITEM_NO_PATH=`basename "$ITEM"` OUTPUT_DIR=$PPSS_LOCAL_OUTPUT/"$ITEM_NO_PATH" @@ -1236,6 +1233,10 @@ commando () { sed s/\)/\\\\\\\\\\)/g ` exec_cmd "mkdir -p $DIR_ESCAPED" + if [ "$DIRNAME" == "." ] + then + DIRNAME="" + fi upload_item "$PPSS_LOCAL_OUTPUT/$ITEM_NO_PATH" "$DIRNAME" elapsed "$BEFORE" "$AFTER" >> "$ITEM_LOG_FILE"