Fix update detection

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-04-05 18:11:18 +02:00
parent d323ed7a12
commit 844520db06
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

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