From 13d71171d4158368fba7be84056b4cf6362d31e0 Mon Sep 17 00:00:00 2001 From: Louwrentius Date: Sat, 15 May 2010 22:50:51 +0000 Subject: [PATCH] Fixed distributed processing after replacing ARRAY mechanism with sed. --- trunk/ppss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trunk/ppss b/trunk/ppss index d6c7561..c387cf5 100755 --- a/trunk/ppss +++ b/trunk/ppss @@ -1514,12 +1514,12 @@ get_all_items () { if [ "$RECURSION" == "1" ] then #ITEMS=`exec_cmd "find $SRC_DIR/ ! -type d"` - `exec_cmd "find $SRC_DIR/ ! -type d"` >> "$LOCAL_INPUT_FILE" + `exec_cmd "find $SRC_DIR/ ! -type d" > "$LOCAL_INPUT_FILE"` check_status "$?" "$FUNCNAME" "Could not list files within remote source directory." else log DEBUG "Recursion is disabled." #ITEMS=`exec_cmd "ls -1 $SRC_DIR"` - `exec_cmd "ls -1 $SRC_DIR"` >> "$LOCAL_INPUT_FILE" + `exec_cmd "ls -1 $SRC_DIR" > "$LOCAL_INPUT_FILE"` check_status "$?" "$FUNCNAME" "Could not list files within remote source directory." fi else @@ -2142,7 +2142,7 @@ show_status () { ITEMS=`exec_cmd "ls -1 $SRC_DIR 2>/dev/null | wc -l" 1` fi else - ITEMS=`exec_cmd "cat $PPSS_HOME_DIR/$INPUT_FILE 2>/dev/null | wc -l" 1` + ITEMS=`exec_cmd "cat $PPSS_HOME_DIR/$LOCAL_INPUT_FILE 2>/dev/null | wc -l" 1` fi ITEMS=`echo $ITEMS | sed s/\ //g`