fix last commit
Build / changes (push) Has been cancelled
Build / Run prettier check (push) Has been cancelled
Build / Doctoc markdown files (push) Has been cancelled
Build / Lint Helm chart (push) Has been cancelled
Build / Lint TypeScript files (push) Has been cancelled
Build / Lint GitHub Actions (push) Has been cancelled
Build / Run unit tests (push) Has been cancelled
Build / linux-x64 (push) Has been cancelled
Build / Run e2e tests (push) Has been cancelled
Build / Run e2e tests behind proxy (push) Has been cancelled
Installer integration / Test installer on Ubuntu (push) Has been cancelled
Installer integration / Test installer on Alpine (push) Has been cancelled
Installer integration / Test installer on macOS (push) Has been cancelled
Script unit tests / Run script unit tests (push) Has been cancelled
Script unit tests / Lint shell files (push) Has been cancelled

This commit is contained in:
smx
2026-06-17 02:44:58 +03:30
parent bd71d0aded
commit 5969e0e263
+2 -2
View File
@@ -75,12 +75,12 @@ EOF
echo_latest_version() { echo_latest_version() {
if [ "${EDGE-}" ]; then if [ "${EDGE-}" ]; then
version="$(curl -fsSL https://api.gitamin.ir/IranAccess/code-server/releases | awk 'match($0,/.*"html_url": "(.*\/releases\/tag\/.*)".*/)' | head -n 1 | awk -F '"' '{print $4}')" version="$(curl -fsSL https://gitamin.ir/api/v1/repos/IranAccess/code-server/releases | awk 'match($0,/.*"html_url": "(.*\/releases\/tag\/.*)".*/)' | head -n 1 | awk -F '"' '{print $4}')"
else else
# https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c#gistcomment-2758860 # https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c#gistcomment-2758860
version="$(curl -fsSLI -o /dev/null -w "%{url_effective}" https://gitamin.ir/IranAccess/code-server/releases/latest)" version="$(curl -fsSLI -o /dev/null -w "%{url_effective}" https://gitamin.ir/IranAccess/code-server/releases/latest)"
fi fi
version="${version#https://gitamin.ir/IranAccess/releases/code-server/tag/}" version="${version#https://gitamin.ir/IranAccess/code-server/releases/tag/}"
version="${version#v}" version="${version#v}"
echo "$version" echo "$version"
} }