Use new VSCode repos (#107)

This commit is contained in:
Cyryl Płotnicki 2017-03-09 20:12:52 +00:00 committed by GitHub
parent 6b9517b7a3
commit 41ecb39dd5

View file

@ -43,8 +43,9 @@ sudo usermod -aG docker $USER
# vscode
mkdir -p ~/Downloads
cd ~/Downloads
aria2c -c "https://go.microsoft.com/fwlink/?LinkID=760867"
sudo dnf -y install code*.rpm
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
sudo dnf -y install --best --allowerasing code
if [ "$(id -u)" != "0" ]; then
code --install-extension cssho.vscode-svgviewer