projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aedf7a
)
scripts/tags.sh: use -n to test archinclude
author
Wei Yang
<richard.weiyang@gmail.com>
Fri, 29 Dec 2023 03:06:53 +0000
(
03:06
+0000)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/scripts/tags.sh
b/scripts/tags.sh
index c088bf4f9aa17d6c372f83a79bfdba0a2499253e..f73cf3f39638c9145f1c7417ccb69f347f7fe1c3 100755
(executable)
--- 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]'