From 41ecb39dd5626d3f9acea95a05990b140a948abc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Thu, 9 Mar 2017 20:12:52 +0000 Subject: [PATCH] Use new VSCode repos (#107) --- fedora/configure_fresh_system.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fedora/configure_fresh_system.sh b/fedora/configure_fresh_system.sh index 4f2a8bad..0c0d928b 100755 --- a/fedora/configure_fresh_system.sh +++ b/fedora/configure_fresh_system.sh @@ -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