From da14ec2aa4f8e60b2aa622a09c0396166c13b105 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 19 Dec 2011 14:55:57 +0000 Subject: [PATCH] Simplify two expressions git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4002 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/run-regression-tests | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/run-regression-tests b/scripts/run-regression-tests index 82f9dd398..ed5f90d0a 100755 --- a/scripts/run-regression-tests +++ b/scripts/run-regression-tests @@ -102,7 +102,7 @@ See also http://lkml.org/lkml/2009/4/5/120 #define likely_notrace(x) __builtin_expect(!!(x), 1) EOF fi - if [ "$1" = "2.6.31" -o "${1#2.6.31.}" != "$1" ] + if [ "${1#2.6.31}" != "$1" ] then cd "../linux-$1" || return $? patch -f -s -p1 <<'EOF' @@ -139,8 +139,7 @@ See also http://lkml.org/lkml/2009/9/26/51 do { \ EOF fi - if [ "$1" = 2.6.32 -o "${1#2.6.32.}" != "$1" -o "$1" = "2.6.33" \ - -o "${1#2.6.33.}" != "$1" ] + if [ "${1#2.6.32}" != "$1" -o "${1#2.6.33}" != "$1" ] then cd "../linux-$1" || return $? patch -f -s -p1 <<'EOF'