Skip to content

Commit

Permalink
docs(providers): fix broken sudo pipe in hostname example (#6769)
Browse files Browse the repository at this point in the history
`sudo echo > /etc/hosts` attempts to write to /etc/hosts as a non-priv user, which will fail. `echo | sudo tee /etc/hosts` works.
  • Loading branch information
tomryanx committed Feb 22, 2023
1 parent d41f2a4 commit c212e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/providers/apple.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Edit your host file and point your site to `127.0.0.1`.
_Linux/macOS_

```
sudo echo '127.0.0.1 dev.example.com' >> /etc/hosts
echo '127.0.0.1 dev.example.com' | sudo tee -a /etc/hosts
```

_Windows_ (run PowerShell as administrator)
Expand Down

1 comment on commit c212e96

@vercel
Copy link

@vercel vercel bot commented on c212e96 Feb 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.