Skip to content

Commit d70a091

Browse files
RichardWeiYanggregkh
authored andcommitted
scripts/tags.sh: use -n to test archinclude
In bash, "! -z" is equivalent to "-n", which seems to be more intuitive. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> CC: Sam Ravnborg <sam@ravnborg.org> Link: https://lore.kernel.org/r/20231229030654.17474-3-richard.weiyang@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 0aedf7a commit d70a091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/tags.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ find_sources()
8989
all_sources()
9090
{
9191
find_arch_include_sources ${SRCARCH} '*.[chS]'
92-
if [ ! -z "$archinclude" ]; then
92+
if [ -n "$archinclude" ]; then
9393
find_arch_include_sources $archinclude '*.[chS]'
9494
fi
9595
find_include_sources '*.[chS]'

0 commit comments

Comments
 (0)