diff --git a/install.sh b/install.sh index 7a7810938..6ab5574eb 100755 --- a/install.sh +++ b/install.sh @@ -62,7 +62,8 @@ EOF echo_latest_version() { # https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c#gistcomment-2758860 version="$(curl -fsSLI -o /dev/null -w "%{url_effective}" https://github.com/cdr/code-server/releases/latest)" - version="${version#https://github.com/cdr/code-server/releases/tag/v}" + version="${version#https://github.com/cdr/code-server/releases/tag/}" + version="${version#v}" echo "$version" }