mvadkert / rpms / beakerlib

Forked from rpms/beakerlib 6 years ago
Clone
Blob Blame History Raw
From 3cbfb525b6de1a147a2fc98c5f12c965e3bd1946 Mon Sep 17 00:00:00 2001
From: Dalibor Pospisil <dapospis@redhat.com>
Date: Wed, 8 Oct 2014 18:02:13 +0200
Subject: [PATCH] fix issue on bash v3 bz1150672

---
 src/testing.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/testing.sh b/src/testing.sh
index 480eaa0..b5f2751 100644
--- a/src/testing.sh
+++ b/src/testing.sh
@@ -1092,7 +1092,7 @@ __INTERNAL_rlIsDistro(){
       fi
     else
       rlLogDebug "arg='$arg'"
-      if [[ "$arg" =~ \. ]]; then
+      if [[ "$arg" =~ [.] ]]; then
         rlLogDebug 'evaluation whole version (including minor)'
         rlLogDebug "executing rlTestVersion \"$whole\" \"$sign\" \"$arg\""
         rlTestVersion "$whole" "$sign" "$arg"
-- 
1.9.3