Add string-escaping when comparing centos version
authorJun Wang <junbill.wang@samsung.com>
Thu, 3 Mar 2016 09:08:32 +0000 (17:08 +0800)
committerJun Wang <junbill.wang@samsung.com>
Thu, 3 Mar 2016 09:08:32 +0000 (17:08 +0800)
Change-Id: Iad60f332f21d5ac50a3e5d7e8a11d5ae70042374

cases/export/gbs_export_with_merge_commit_in_git-log.case

index 3d3b1eb9fe65a55bfa614a4d26e7546debd33b34..a9b5300bb553661c95c5a433820c82d1baf8082f 100644 (file)
@@ -32,7 +32,7 @@ DIST=`python -c "import platform; print platform.dist()[0]"`
 
 VERSION=`python -c "import platform;print platform.dist()[1]"`
 
-if ([ $DIST = centos ] && [ $VERSION < 7 ] ) || ([ $DIST = SuSE ] && [ $VERSION = 12.1 ]);then
+if ([ $DIST = centos ] && [ $VERSION \< 7 ] ) || ([ $DIST = SuSE ] && [ $VERSION = 12.1 ]);then
     OPTION=--no-log
 else
     OPTION=--no-edit