Update container-scripts/vscode_server.sh
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user