Headers on Fedora.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Fri, 1 Feb 2013 16:07:03 +0000 (16:07 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Sat, 2 Feb 2013 15:44:05 +0000 (16:44 +0100)
org.glite.testsuites.ctb/LB/tests/lb-common-testbeds.sh

index 3376d13..e18d164 100755 (executable)
@@ -189,14 +189,14 @@ function gen_deployment_header()
 DURATION=`expr $1 - $2`
 SCENARIO="$3"
 
-ISSUE=`cat /etc/issue | head -n 1 | sed -r 's/[\\\r].*$//'`
+ISSUE=`cat /etc/issue | head -n 1 | sed -r 's/\s*(release|\\\\).*$//'`
 PLATFORM=`uname -i`
 if [ "$PLATFORM" == "unknown" ]; then
     PLATFORM="`uname -sr`"
 fi
 TESTBED=`hostname -f`
 DISTRO=`cat /etc/issue | head -n 1 | sed 's/\s.*$//'`
-VERSION=`cat /etc/issue | head -n 1 | grep -E -o "[0-9]+\.[0-9]+"`
+VERSION=`cat /etc/issue | head -n 1 | grep -E -o "[0-9]+(\.[0-9]+)?"`
 MAJOR=`echo $VERSION | sed 's/\..*$//'`
 
 printf "