]> git.karo-electronics.de Git - linux-beck.git/commitdiff
eradicate bashisms in scripts/patch-kernel
authorAndreas Mohr <andi@lisas.de>
Sun, 3 Apr 2011 18:58:28 +0000 (20:58 +0200)
committerMichal Marek <mmarek@suse.cz>
Mon, 4 Apr 2011 12:58:33 +0000 (14:58 +0200)
Silence a remaining annoying (or worse, irritating - "is my entire patched tree
broken now!?") bashism-related message that occurs when /bin/sh is configured
to instead deploy dash, a POSIX-compliant shell, as is the pretty much
standard case on e.g. Debian.

Current kernel version is 2.6.38 ( Flesh-Eating Bats with Fangs)
===>  linux-2.6.38.patch-kernel_test/scripts/patch-kernel: line 253: [: =: unary operator expected  <===
cannot find patch file: patch-2.6.39

Signed-off-by: Andreas Mohr <andi@lisas.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/patch-kernel

index 46a59cae3a0a6d52840483ab10212ef93fb6f3c3..20fb25c2338299f33a8954d6b046ce17f7b466fe 100755 (executable)
@@ -250,7 +250,7 @@ while :                             # incrementing SUBLEVEL (s in v.p.s)
 do
     CURRENTFULLVERSION="$VERSION.$PATCHLEVEL.$SUBLEVEL"
     EXTRAVER=
-    if [ $STOPFULLVERSION = $CURRENTFULLVERSION ]; then
+    if [ x$STOPFULLVERSION = x$CURRENTFULLVERSION ]; then
         echo "Stopping at $CURRENTFULLVERSION base as requested."
         break
     fi