scripts/tags.sh: use more portable -path instead of -wholename

According to the manual, -path is more portable than -wholename. Also
for consistency, let's use -path here.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
CC: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
CC: WANG Cong <xiyou.wangcong@gmail.com>
CC: Michal Marek <mmarek@suse.cz>
Link: https://lore.kernel.org/r/20231229030654.17474-1-richard.weiyang@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Wei Yang
2023-12-29 03:06:51 +00:00
committed by Greg Kroah-Hartman
parent 4f3f263df5
commit f9fefa985d

View File

@ -50,7 +50,7 @@ fi
find_arch_sources()
{
for i in $archincludedir; do
prune="$prune -wholename $i -prune -o"
prune="$prune ( -path $i ) -prune -o"
done
find ${tree}arch/$1 $ignore $prune -name "$2" -not -type l -print;
}