Skip to content

Commit

Permalink
kbuild: fix string equality testing in tags.sh
Browse files Browse the repository at this point in the history
Test of string equality in shells is =, not C-like ==.

Signed-off-by: Jiri Slaby <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
jirislaby authored and sravnborg committed Dec 13, 2008
1 parent 709cc37 commit a6ba0cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Uses the following environment variables:
# ARCH, SUBARCH, srctree, src, obj

if [ $KBUILD_VERBOSE == 1 ]; then
if [ "$KBUILD_VERBOSE" = "1" ]; then
set -x
fi

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

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


# Support um (which uses SUBARCH)
if [ ${ARCH} == um ]; then
if [ $SUBARCH == i386 ]; then
if [ "${ARCH}" = "um" ]; then
if [ "$SUBARCH" = "i386" ]; then
archinclude=x86
elif [ $SUBARCH == x86_64 ]; then
elif [ "$SUBARCH" = "x86_64" ]; then
archinclude=x86
else
archinclude=${SUBARCH}
Expand Down

0 comments on commit a6ba0cb

Please sign in to comment.