summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWei Yang <richard.weiyang@gmail.com>2023-12-29 03:06:53 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-04 17:01:15 +0100
commitd70a091fb412fd0410b882c0b45072e547beb070 (patch)
treef6070e05bbfd7b4870d38952b023e9ce41adcef5 /scripts
parent0aedf7a2dc5d23211399813bdfce5a46e836d5d7 (diff)
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tags.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tags.sh b/scripts/tags.sh
index c088bf4f9aa1..f73cf3f39638 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -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]'