Skip to content

Commit 177525d

Browse files
andim2michal42
authored andcommitted
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>
1 parent 0ce790e commit 177525d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/patch-kernel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ while : # incrementing SUBLEVEL (s in v.p.s)
250250
do
251251
CURRENTFULLVERSION="$VERSION.$PATCHLEVEL.$SUBLEVEL"
252252
EXTRAVER=
253-
if [ $STOPFULLVERSION = $CURRENTFULLVERSION ]; then
253+
if [ x$STOPFULLVERSION = x$CURRENTFULLVERSION ]; then
254254
echo "Stopping at $CURRENTFULLVERSION base as requested."
255255
break
256256
fi

0 commit comments

Comments
 (0)