Skip to content

Commit 9ca3b72

Browse files
authored
Add ampersands (#9128)
1 parent 6325cd7 commit 9ca3b72

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/setup/linux.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ MetaDescription: Get Visual Studio Code up and running on Linux.
5959
1. Run the following script to install the signing key:
6060
6161
```bash
62-
sudo apt-get install wget gpg
63-
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
64-
sudo install -D -o root -g root -m 644 microsoft.gpg /usr/share/keyrings/microsoft.gpg
62+
sudo apt-get install wget gpg &&
63+
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg &&
64+
sudo install -D -o root -g root -m 644 microsoft.gpg /usr/share/keyrings/microsoft.gpg &&
6565
rm -f microsoft.gpg
6666
```
6767
@@ -79,8 +79,8 @@ MetaDescription: Get Visual Studio Code up and running on Linux.
7979
1. Lastly, update the package cache and install the package:
8080
8181
```bash
82-
sudo apt install apt-transport-https
83-
sudo apt update
82+
sudo apt install apt-transport-https &&
83+
sudo apt update &&
8484
sudo apt install code # or code-insiders
8585
```
8686
@@ -94,21 +94,21 @@ We currently ship the stable 64-bit VS Code for RHEL, Fedora, or CentOS based di
9494
1. Install the key and yum repository by running the following script:
9595
9696
```bash
97-
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
97+
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc &&
9898
echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/vscode.repo > /dev/null
9999
```
100100
101101
1. Then update the package cache and install the package using `dnf` (Fedora 22 and above):
102102
103103
```bash
104-
dnf check-update
104+
dnf check-update &&
105105
sudo dnf install code # or code-insiders
106106
```
107107
108108
Or on older versions using `yum`:
109109
110110
```bash
111-
yum check-update
111+
yum check-update &&
112112
sudo yum install code # or code-insiders
113113
```
114114
@@ -141,8 +141,8 @@ The yum repository [mentioned previously](#rhel-fedora-and-centos-based-distribu
141141
1. Install the key and yum repository by running the following script:
142142

143143
```bash
144-
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
145-
echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" |sudo tee /etc/zypp/repos.d/vscode.repo > /dev/null
144+
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc &&
145+
echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/zypp/repos.d/vscode.repo > /dev/null
146146
```
147147

148148
1. Then update the package cache and install the package using:

0 commit comments

Comments
 (0)