Fix broken check in update-script

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-04-17 14:42:31 +02:00
parent f82adc35c5
commit 13c645290c
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

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