Skip to content

Commit a6ba0cb

Browse files
jirislabysravnborg
authored andcommitted
kbuild: fix string equality testing in tags.sh
Test of string equality in shells is =, not C-like ==. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
1 parent 709cc37 commit a6ba0cb

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎scripts/tags.sh‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Uses the following environment variables:
88
# ARCH, SUBARCH, srctree, src, obj
99

10-
if [ $KBUILD_VERBOSE == 1 ]; then
10+
if [ "$KBUILD_VERBOSE" = "1" ]; then
1111
set -x
1212
fi
1313

@@ -18,7 +18,7 @@ ignore="( -name SCCS -o -name BitKeeper -o -name .svn -o \
1818
-prune -o"
1919

2020
# Do not use full path is we do not use O=.. builds
21-
if [ "${KBUILD_SRC}" == "" ]; then
21+
if [ "${KBUILD_SRC}" = "" ]; then
2222
tree=
2323
else
2424
tree=${srctree}/
@@ -135,10 +135,10 @@ xtags()
135135

136136

137137
# Support um (which uses SUBARCH)
138-
if [ ${ARCH} == um ]; then
139-
if [ $SUBARCH == i386 ]; then
138+
if [ "${ARCH}" = "um" ]; then
139+
if [ "$SUBARCH" = "i386" ]; then
140140
archinclude=x86
141-
elif [ $SUBARCH == x86_64 ]; then
141+
elif [ "$SUBARCH" = "x86_64" ]; then
142142
archinclude=x86
143143
else
144144
archinclude=${SUBARCH}

0 commit comments

Comments
 (0)