From df205b8e483a547c58027ddeaa4a2fcf6992cac4 Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Tue, 6 Feb 2024 19:15:49 -1000 Subject: [PATCH] Update container-scripts/vscode_server.sh --- container-scripts/vscode_server.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/container-scripts/vscode_server.sh b/container-scripts/vscode_server.sh index cce5d82..2a37d4e 100644 --- a/container-scripts/vscode_server.sh +++ b/container-scripts/vscode_server.sh @@ -29,7 +29,7 @@ get_latest_release() { sha=$(echo "${combo_sha}" | sed -E "s/${sha}//" | xargs) fi - printf "${sha}" + printf "${tag}" } ARCH="x64" @@ -42,14 +42,14 @@ fi archive="vscode-server-linux-${ARCH}.tar.gz" owner='microsoft' repo='vscode' -commit_sha=$(get_latest_release "${owner}/${repo}") +tag=$(get_latest_release "${owner}/${repo}") if [ -n "${commit_sha}" ]; then echo "will attempt to download VS Code Server version = '${commit_sha}'" # Download VS Code Server tarball to tmp directory. #curl -L "https://update.code.visualstudio.com/commit:${commit_sha}/server-linux-${ARCH}/stable" -o "/tmp/${archive}" - curl -L "https://update.code.visualstudio.com/1.86.0/server-linux-x64/stable" -o /tmp/${archive} + curl -L "https://update.code.visualstudio.com/${tag}/server-linux-${ARCH}/stable" -o /tmp/${archive} # Make the parent directory where the server should live. # NOTE: Ensure VS Code will have read/write access; namely the user running VScode or container user.