From e82f1b1266d73d729fabcd62b38a4f6d061c9b46 Mon Sep 17 00:00:00 2001 From: cytopia Date: Thu, 25 May 2017 12:58:15 +0200 Subject: [PATCH] REL-0.10 Pad actual version display in travis checks --- .tests/.lib.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.tests/.lib.sh b/.tests/.lib.sh index b6206ac1..6c038d91 100644 --- a/.tests/.lib.sh +++ b/.tests/.lib.sh @@ -348,12 +348,20 @@ devilbox_start() { devilbox_print_actual_settings() { - curl -q http://localhost/index.php 2>/dev/null | \ + VERSIONS="$( curl -q http://localhost/index.php 2>/dev/null | \ grep -E 'circles' | \ grep -oE '.*\(.*\)' | \ sed 's///g' | \ sed 's/<\/strong>.*(/\t/g' | \ - sed 's/)//g' + sed 's/)//g' )" + + IFS=' + ' + for v in ${VERSIONS}; do + service="$( echo "${v}" | awk '{print $1}' )" + version="$( echo "${v}" | awk '{print $2}' )" + printf "%-15s%s\n" "${service}" "${version}" + done }