Skip to content

Commit

Permalink
eradicate bashisms in scripts/patch-kernel
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
andim2 authored and michal42 committed Apr 4, 2011
1 parent 0ce790e commit 177525d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/patch-kernel
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 177525d

Please sign in to comment.