scripts/tags.sh: use -n to test archinclude
authorWei Yang <richard.weiyang@gmail.com>
Fri, 29 Dec 2023 03:06:53 +0000 (03:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jan 2024 16:01:15 +0000 (17:01 +0100)
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>
scripts/tags.sh

index c088bf4f9aa17d6c372f83a79bfdba0a2499253e..f73cf3f39638c9145f1c7417ccb69f347f7fe1c3 100755 (executable)
@@ -89,7 +89,7 @@ find_sources()
 all_sources()
 {
        find_arch_include_sources ${SRCARCH} '*.[chS]'
-       if [ ! -z "$archinclude" ]; then
+       if [ -n "$archinclude" ]; then
                find_arch_include_sources $archinclude '*.[chS]'
        fi
        find_include_sources '*.[chS]'