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

Commit 19ea2a88 authored by Sean McNeil's avatar Sean McNeil
Browse files

Cleanup output when searching for leaves. Don't want to see things like...

Cleanup output when searching for leaves. Don't want to see things like warnings of looping symlinks.
parent d47804e9
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 -L "${@:1:$nargs-1}" $findargs -type f -name "$filename" -print |
find -L "${@:1:$nargs-1}" $findargs -type f -name "$filename" -print 2>/dev/null |

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