vscodium/get_repo.sh
2020-09-16 11:18:02 -07:00

11 lines
397 B
Bash
Executable file

#!/bin/bash
# figure out latest tag by calling MS update API
UPDATE_INFO=$(curl https://update.code.visualstudio.com/api/update/darwin/stable/lol)
export LATEST_MS_COMMIT=$(echo $UPDATE_INFO | jq '.version')
export LATEST_MS_TAG=$(echo $UPDATE_INFO | jq '.name')
echo "Got the latest MS tag: ${LATEST_MS_TAG}"
git clone https://github.com/Microsoft/vscode.git --branch $LATEST_MS_TAG --depth 1