diff --git a/pyesearch.py b/pyesearch.py index 70f8957..48daa4a 100755 --- a/pyesearch.py +++ b/pyesearch.py @@ -82,7 +82,7 @@ def find(query, paths, depth=None): depth_args = ["-mindepth", f"{depth}", "-maxdepth", f"{depth}"] if depth is not None else [] proc = subprocess.run( - ["find", *paths, *depth_args, "-iname", f"*{query}*", "-print0"], + ["find", *paths, *depth_args, "-iname", f"*{query}*.ebuild", "-print0"], check=True, stdout=subprocess.PIPE ) return list_from_print0(proc.stdout)