Fix update check

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-03-13 12:45:38 +01:00
parent f7c6a8ac3d
commit b0dd05eb24
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -11,7 +11,7 @@ git reset --hard origin/master
version=$(curl -s "https://lv.luzifer.io/catalog-api/openfire/latest.txt?p=version") version=$(curl -s "https://lv.luzifer.io/catalog-api/openfire/latest.txt?p=version")
versionVar=$(echo "${version}" | sed 's/\./_/g') versionVar=$(echo "${version}" | sed 's/\./_/g')
grep -q "OPENFIRE_VERSION=${versionVar} " Dockerfile && exit 0 || echo "Update required" grep -q "OPENFIRE_VERSION=${versionVar}" Dockerfile && exit 0 || echo "Update required"
sed -Ei \ sed -Ei \
-e "s/OPENFIRE_VERSION=[0-9_]+/OPENFIRE_VERSION=${versionVar}/" \ -e "s/OPENFIRE_VERSION=[0-9_]+/OPENFIRE_VERSION=${versionVar}/" \