findleaves.sh: Properly fix arguments.

the first argument is the executable (here findleaves.sh), therefore we
need to start popping from the 2nd argument (1).
This commit is contained in:
Edward Hervey 2009-03-19 12:27:57 +01:00
parent ccf4b83b02
commit 4cd3f74003
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ filename="${!nargs}"
# Print out all files that match, as long as the path isn't explicitly
# pruned. This will print out extraneous results from directories whose
# parents have a match. These are filtered out by the awk script below.
find -L "${@:0:$nargs}" $findargs -type f -name "$filename" -print |
find -L "${@:1:$nargs-1}" $findargs -type f -name "$filename" -print |
# Only pass along the directory of each match.
sed -e 's/\/[^\/]*$/\//' |