aboutsummaryrefslogtreecommitdiff
path: root/docker/code-server/install-code-server.bash
blob: e9de30f374f190ac1f679d592ce34771539906fa (plain)
1
2
3
4
5
6
7
8
#! /usr/bin/env bash

set -e

VERSION=$(curl -s https://api.github.com/repos/coder/code-server/releases/latest | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/')

curl -fOL "https://github.com/coder/code-server/releases/download/v${VERSION}/code-server_${VERSION}_amd64.deb"
dpkg -i "code-server_${VERSION}_amd64.deb"