From 9a3b9fcac23e6bd7f01e46bae94ea7c017bbc0f7 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Tue, 2 Jun 2020 17:22:24 -0400 Subject: [PATCH] Fix install script to trim leading v from version Updates #1746 --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 7a781093..6ab5574e 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" }