From 83a815b61adaf0e2628455f7b24889f58c03ee46 Mon Sep 17 00:00:00 2001 From: Hayden <33820650+sirredbeard@users.noreply.github.com> Date: Thu, 27 Sep 2018 19:16:52 -0400 Subject: [PATCH] Update installcode.sh --- linux_files/installcode.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/linux_files/installcode.sh b/linux_files/installcode.sh index 7a45931a..66a27a8c 100644 --- a/linux_files/installcode.sh +++ b/linux_files/installcode.sh @@ -1,4 +1,7 @@ #!/bin/bash +CURDIR=$(pwd) +TMPDIR=$(mktemp -d) +cd $TMPDIR sudo apt-get install apt-transport-https curl -y curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg @@ -7,3 +10,6 @@ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode s sudo apt upgrade -y sudo apt update -y sudo apt install code libxss1 libasound2 + +cd $CURDIR +rm -r $TMPDIR