Fix regular expression cutting the version.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 26 Apr 2012 18:06:48 +0000 (18:06 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 26 Apr 2012 18:06:48 +0000 (18:06 +0000)
org.glite.testsuites.ctb/LB/tests/lb-test-ws.sh

index 6d35f4f..0ec2e2a 100755 (executable)
@@ -214,7 +214,7 @@ fi
                                egrep -i "Debian|Ubuntu" /etc/issue >/dev/null 2>&1
                                if [ $? = 0 ]; then
                                        printf "Get dpkg version... "
-                                       sysversion=`$SYS_DPKG_QUERY -W glite-lb-ws-interface | $SYS_SED 's/^[^\s]*\s\+//' | $SYS_SED 's/-.*//'`
+                                       sysversion=`$SYS_DPKG_QUERY -W glite-lb-ws-interface | $SYS_SED 's/^[^ \t]*\s\+//' | $SYS_SED 's/-.*//'`
                                else
                                        printf "Get rpm version... "
                                        sysversion=`$SYS_RPM -qi glite-lb-ws-interface | $SYS_GREP -E "^Version" | $SYS_SED 's/^Version\s*:\s*//' | $SYS_SED 's/\s.*$//'`