Rev 4 | Rev 37 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4 | Rev 33 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | local curdir curdir2 |
37 | local curdir curdir2 |
38 | 38 | ||
39 | curdir=$(pwd) |
39 | curdir=$(pwd) |
40 | cd -- "$directory" |
40 | cd -- "$directory" |
41 | curdir2=$(pwd) |
41 | curdir2=$(pwd) |
42 | files=$(ls) |
42 | files=$(ls -a) |
43 | for file in $files |
43 | for file in $files |
44 | do |
44 | do |
45 | pfile=$curdir2/$file # file including path |
45 | pfile=$curdir2/$file # file including path |
- | 46 | if [ $file != ".." -a $file != "." ] |
|
- | 47 | then |
|
46 | if [ -d "$file" -a ! -L "$file" ] |
48 | if [ -d "$file" -a ! -L "$file" ] |
47 | then |
49 | then |
48 | echo $pfile |
50 | echo $pfile |
49 | traverse "$file" |
51 | traverse "$file" |
50 | else |
52 | else |
Line 52... | Line 54... | ||
52 | then |
54 | then |
53 | echo "$pfile" |
55 | echo "$pfile" |
54 | else |
56 | else |
55 | echo "WARNING: Could not process file $pfile" |
57 | echo "WARNING: Could not process file $pfile" |
56 | fi |
58 | fi |
- | 59 | fi |
|
- | 60 | ||
57 | fi |
61 | fi |
58 | done |
62 | done |
59 | cd -- "$curdir" |
63 | cd -- "$curdir" |
60 | } |
64 | } |
61 | 65 |