Fixes almost complete, more testing needed
This commit is contained in:
parent
be217ac168
commit
64edfe79c1
9
ppss.sh
9
ppss.sh
@ -1074,7 +1074,7 @@ get_item () {
|
|||||||
# Gives a status update on the current progress..
|
# Gives a status update on the current progress..
|
||||||
PERCENT=$((100 * $ARRAY_POINTER / $SIZE_OF_ARRAY ))
|
PERCENT=$((100 * $ARRAY_POINTER / $SIZE_OF_ARRAY ))
|
||||||
log INFO "Currently $PERCENT percent complete. Processed $ARRAY_POINTER of $SIZE_OF_ARRAY items."
|
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.
|
# Check if all items have been processed.
|
||||||
if [ "$ARRAY_POINTER" -ge "$SIZE_OF_ARRAY" ]
|
if [ "$ARRAY_POINTER" -ge "$SIZE_OF_ARRAY" ]
|
||||||
@ -1146,9 +1146,6 @@ commando () {
|
|||||||
|
|
||||||
ITEM="$1"
|
ITEM="$1"
|
||||||
DIRNAME=`dirname "$ITEM"`
|
DIRNAME=`dirname "$ITEM"`
|
||||||
echo
|
|
||||||
echo "DIRNAME IS $DIRNAME"
|
|
||||||
echo
|
|
||||||
ITEM_NO_PATH=`basename "$ITEM"`
|
ITEM_NO_PATH=`basename "$ITEM"`
|
||||||
OUTPUT_DIR=$PPSS_LOCAL_OUTPUT/"$ITEM_NO_PATH"
|
OUTPUT_DIR=$PPSS_LOCAL_OUTPUT/"$ITEM_NO_PATH"
|
||||||
|
|
||||||
@ -1236,6 +1233,10 @@ commando () {
|
|||||||
sed s/\)/\\\\\\\\\\)/g `
|
sed s/\)/\\\\\\\\\\)/g `
|
||||||
|
|
||||||
exec_cmd "mkdir -p $DIR_ESCAPED"
|
exec_cmd "mkdir -p $DIR_ESCAPED"
|
||||||
|
if [ "$DIRNAME" == "." ]
|
||||||
|
then
|
||||||
|
DIRNAME=""
|
||||||
|
fi
|
||||||
upload_item "$PPSS_LOCAL_OUTPUT/$ITEM_NO_PATH" "$DIRNAME"
|
upload_item "$PPSS_LOCAL_OUTPUT/$ITEM_NO_PATH" "$DIRNAME"
|
||||||
|
|
||||||
elapsed "$BEFORE" "$AFTER" >> "$ITEM_LOG_FILE"
|
elapsed "$BEFORE" "$AFTER" >> "$ITEM_LOG_FILE"
|
||||||
|
Loading…
Reference in New Issue
Block a user