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