Skip to content

Commit 0484f12

Browse files
committed
kbuild: fix buglet in gcc-version.sh
Greg Schafer <gschafer@zip.com.au> reported: ==== $make mrproper scripts/gcc-version.sh: [[: command not found This is on a very old host with an ancient bash as /bin/sh. But I have CONFIG_SHELL set and pointing to a modern bash. Something is wrong. This doesn't happen with 2.6.23 ==== Fixed using a more common string equality test. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Greg Schafer <gschafer@zip.com.au> Cc: Jesper Juhl <jesper.juhl@gmail.com>
1 parent 899c384 commit 0484f12

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎scripts/gcc-version.sh‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
# gcc-2.95.3, `030301' for gcc-3.3.1, etc.
1010
#
1111

12-
if [[ $1 = "-p" ]] ; then with_patchlevel=1; shift; fi
12+
if [ "$1" = "-p" ] ; then
13+
with_patchlevel=1;
14+
shift;
15+
fi
1316

1417
compiler="$*"
1518

0 commit comments

Comments
 (0)