Fix update check

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-09-28 13:42:45 +02:00
parent a45d1beda1
commit 30f93af75f
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

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