From a9b4eac8860389e8b5dcf5314bf3c883c46dfdfc Mon Sep 17 00:00:00 2001 From: Louwrentius Date: Sun, 7 Feb 2010 21:33:27 +0000 Subject: [PATCH] PPSS now processes directories recursive\!\!\! --- ppss | 6 +++--- ppss-test.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ppss b/ppss index 6288a07..69737c4 100755 --- a/ppss +++ b/ppss @@ -1200,12 +1200,12 @@ get_all_items () { then if [ ! -z "$SSH_SERVER" ] # Are we running stand-alone or as a slave?" then - ITEMS=`exec_cmd "ls -1 $SRC_DIR"` + ITEMS=`exec_cmd "find $SRC_DIR -type f"` check_status "$?" "$FUNCNAME" "Could not list files within remote source directory." else if [ -e "$SRC_DIR" ] then - ITEMS=`ls -1 $SRC_DIR` + ITEMS=`find $SRC_DIR -type f` else ITEMS="" fi @@ -1401,7 +1401,7 @@ commando () { then log DEBUG "Using item straight from the server." else - ITEM="$SRC_DIR/$ITEM" + ITEM="$ITEM" fi else ITEM="./$PPSS_LOCAL_TMPDIR/$ITEM_NO_PATH" diff --git a/ppss-test.sh b/ppss-test.sh index b8f3db5..bbb2569 100755 --- a/ppss-test.sh +++ b/ppss-test.sh @@ -3,7 +3,7 @@ DEBUG="$1" VERSION=2.55 TMP_DIR="ppss" -PPSS=./ppss +PPSS=./ppss_new PPSS_DIR=ppss_dir cleanup () { @@ -98,7 +98,7 @@ testSpacesInFilenames () { createDirectoryWithSomeFiles - RES=$( { ./$PPSS -d /tmp/$TMP_DIR -c 'ls -alh ' >> /dev/null ; } 2>&1 ) + RES=$( { ./$PPSS -d /tmp/$TMP_DIR -c 'ls -alh ' >> log.txt ; } 2>&1 ) assertEquals "PPSS did not execute properly." 0 "$?" assertNull "PPSS retured some errors..." "$RES" @@ -116,7 +116,7 @@ testSpacesInFilenames () { testSpecialCharacterHandling () { - RES=$( { ./$PPSS -f "$INPUTFILESPECIAL" -c 'echo ' >> /dev/null ; } 2>&1 ) + RES=$( { ./$PPSS -f "$INPUTFILESPECIAL" -c 'echo ' >> log.txt ; } 2>&1 ) assertEquals "PPSS did not execute properly." 0 "$?" assertNull "PPSS retured some errors..." "$RES"