Skip to content

Commit 9a3b9fc

Browse files
committed
Fix install script to trim leading v from version
Updates #1746
1 parent b881633 commit 9a3b9fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ EOF
6262
echo_latest_version() {
6363
# https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c#gistcomment-2758860
6464
version="$(curl -fsSLI -o /dev/null -w "%{url_effective}" https://github.com/cdr/code-server/releases/latest)"
65-
version="${version#https://github.com/cdr/code-server/releases/tag/v}"
65+
version="${version#https://github.com/cdr/code-server/releases/tag/}"
66+
version="${version#v}"
6667
echo "$version"
6768
}
6869

0 commit comments

Comments
 (0)