From 3ea1c77351493dfae1aa984ee72ba417e85c2fe8 Mon Sep 17 00:00:00 2001 From: Michel Date: Thu, 20 Jun 2024 16:05:27 +0200 Subject: [PATCH] fix: versions_check extract versions --- bin/versions_check | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/versions_check b/bin/versions_check index eba2e64..a7c8ad4 100755 --- a/bin/versions_check +++ b/bin/versions_check @@ -130,9 +130,9 @@ function archive prog_out=$(${program} --version) # Extract version from program's output - current_version=$(lastversion format "${prog_out} | head -1 )" 2>/dev/null) + current_version=$(lastversion format "$(echo ${prog_out} | head -1)" 2>/dev/null) if [ -e ${current_version} ]; then - current_version=$(lastversion format "${prog_out} | grep -o "version=[0-9.]\+")") + current_version=$(lastversion format "$(echo ${prog_out} | grep -o 'version=[0-9.]\+')") fi # Highlight program's version