If vscode exists, fetch updates (#19)

This commit is contained in:
Ruslan Gainutdinov 2018-09-20 16:32:49 +03:00 committed by Peter Squicciarini
parent 2bf10dde0c
commit 606d3f8ff2
2 changed files with 10 additions and 3 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
vscode

View file

@ -1,7 +1,13 @@
#!/bin/bash
if [ -d vscode ]; then
cd vscode
git fetch --all
else
git clone https://github.com/Microsoft/vscode.git
cd vscode
fi
export LATEST_MS_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "Got the latest MS tag: ${LATEST_MS_TAG}"
git checkout $LATEST_MS_TAG