Skip to content

Commit 98cca31

Browse files
committed
Improved the appearance of the code, improved the method of adding keys.
1 parent 54836d1 commit 98cca31

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

aut-apps.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@ if [[ $EUID -ne 0 ]]; then
33
echo "This script must be run as root" 1>&2
44
exit 1
55
fi
6-
echo 'Install Google Chrome, Git and Visual Studio Code'
76
touch /etc/apt/sources.list.d/google-chrome.list
87
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
119
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
1210
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
1412
apt update
1513
echo 'Start install'
1614
apt-get -y install google-chrome-stable git apt-transport-https code
17-
apt update
1815
echo 'Complete'

0 commit comments

Comments
 (0)