From 239637eac86c8f4f92384891a8f99085039a5778 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Queru Date: Wed, 29 Jul 2009 07:35:15 -0700 Subject: [PATCH] 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 --- tools/findleaves.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/findleaves.sh b/tools/findleaves.sh index 7cc0fa775..6e3aed0bb 100755 --- a/tools/findleaves.sh +++ b/tools/findleaves.sh @@ -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/\/[^\/]*$/\//' | -- 2.11.0