PPSS now processes directories recursive\!\!\!
This commit is contained in:
parent
bd97eed1ea
commit
a9b4eac886
6
ppss
6
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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user