Merge pull request #31227 from pyaillet/patch-1

Fix a wrong usage of sudo in debian install doc
This commit is contained in:
Craig Wright 2022-06-13 14:04:47 -07:00 committed by GitHub
commit 0db75574fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ After registering the key, you can add the official HashiCorp repository to
your system:
```bash
sudo echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/terraform-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/terraform.list
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/terraform-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/terraform.list
```
The above command line uses the following sub-shell commands: