mirror of
https://github.com/VSCodium/vscodium
synced 2024-07-17 02:57:58 +00:00
18 lines
355 B
Bash
Executable file
18 lines
355 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
if [ -d vscode ]; then
|
|
cd vscode
|
|
git fetch --all
|
|
else
|
|
git clone https://github.com/Microsoft/vscode.git
|
|
cd vscode
|
|
fi
|
|
|
|
export LATEST_MS_COMMIT=$(git rev-list --tags --max-count=1)
|
|
export LATEST_MS_TAG=$(git describe --tags ${LATEST_MS_COMMIT})
|
|
echo "Got the latest MS tag: ${LATEST_MS_TAG}"
|
|
git checkout $LATEST_MS_TAG
|
|
cd ..
|