If vscode exists, fetch updates (#19)
This commit is contained in:
parent
2bf10dde0c
commit
606d3f8ff2
2 changed files with 10 additions and 3 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
vscode
|
12
get_repo.sh
12
get_repo.sh
|
@ -1,8 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
git clone https://github.com/Microsoft/vscode.git
|
if [ -d vscode ]; then
|
||||||
cd vscode
|
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`)
|
export LATEST_MS_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
|
||||||
echo "Got the latest MS tag: ${LATEST_MS_TAG}"
|
echo "Got the latest MS tag: ${LATEST_MS_TAG}"
|
||||||
git checkout $LATEST_MS_TAG
|
git checkout $LATEST_MS_TAG
|
||||||
cd ..
|
cd ..
|
||||||
|
|
Loading…
Reference in a new issue