Skip to content

Commit 0db7557

Browse files
authored
Merge pull request hashicorp#31227 from pyaillet/patch-1
Fix a wrong usage of sudo in debian install doc
2 parents b6ddb08 + 2fd3da9 commit 0db7557

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎website/docs/cli/install/apt.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ After registering the key, you can add the official HashiCorp repository to
3939
your system:
4040

4141
```bash
42-
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
42+
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
4343
```
4444

4545
The above command line uses the following sub-shell commands:

0 commit comments

Comments
 (0)