Commit 177525d26e31806d71653f74bbec13574b97892c

Authored by Andreas Mohr
Committed by Michal Marek
1 parent 0ce790e7d7

eradicate bashisms in scripts/patch-kernel

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

scripts/patch-kernel
... ... @@ -250,7 +250,7 @@
250 250 do
251 251 CURRENTFULLVERSION="$VERSION.$PATCHLEVEL.$SUBLEVEL"
252 252 EXTRAVER=
253   - if [ $STOPFULLVERSION = $CURRENTFULLVERSION ]; then
  253 + if [ x$STOPFULLVERSION = x$CURRENTFULLVERSION ]; then
254 254 echo "Stopping at $CURRENTFULLVERSION base as requested."
255 255 break
256 256 fi