fix: versions_check extract versions

This commit is contained in:
Michel 2024-06-20 16:05:27 +02:00
parent 140ffa177e
commit 3ea1c77351

View File

@ -130,9 +130,9 @@ function archive
prog_out=$(${program} --version) prog_out=$(${program} --version)
# Extract version from program's output # 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 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 fi
# Highlight program's version # Highlight program's version