1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 02:59:47 +01:00

Fix check_version_simple for newer versions of bash

Apparently the variable substitution no longer works inside '', breaking
the check_update script.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-07-07 14:40:36 +02:00
parent 87f661ff6c
commit 7e1857c35a

View file

@ -38,6 +38,6 @@ check_update_simple() {
local suffix="$3" local suffix="$3"
curl --silent -L "$url" | grep -o ">$prefix-[0-9.]*$suffix<" | \ curl --silent -L "$url" | grep -o ">$prefix-[0-9.]*$suffix<" | \
sed 's/>$prefix-//g' | sed 's/.$suffix<//g' | \ sed "s/>$prefix-//g" | sed "s/.$suffix<//g" | \
verson_find_greatest "$VERSION" verson_find_greatest "$VERSION"
} }