File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,13 @@ if [[ $EUID -ne 0 ]]; then
3
3
echo " This script must be run as root" 1>&2
4
4
exit 1
5
5
fi
6
- echo ' Install Google Chrome, Git and Visual Studio Code'
7
6
touch /etc/apt/sources.list.d/google-chrome.list
8
7
echo ' deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/google-chrome.list
9
- wget https://dl.google.com/linux/linux_signing_key.pub
10
- apt-key add linux_signing_key.pub
8
+ curl -fsSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add linux_signing_key.pub
11
9
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
12
10
install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
13
- sh -c ' echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
11
+ echo " deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list
14
12
apt update
15
13
echo ' Start install'
16
14
apt-get -y install google-chrome-stable git apt-transport-https code
17
- apt update
18
15
echo ' Complete'
You can’t perform that action at this time.
0 commit comments