Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 239637ea authored by Jean-Baptiste Queru's avatar Jean-Baptiste Queru
Browse files

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).

Conflicts:

	tools/findleaves.sh
parent c16c0a41
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 "${@:0:$nargs}" $findargs -type f -name "$filename" -print |
find "${@:1:$nargs-1}" $findargs -type f -name "$filename" -print |

# Only pass along the directory of each match.
sed -e 's/\/[^\/]*$/\//' |