Skip to content

Commit c212e96

Browse files
authored
docs(providers): fix broken sudo pipe in hostname example (#6769)
`sudo echo > /etc/hosts` attempts to write to /etc/hosts as a non-priv user, which will fail. `echo | sudo tee /etc/hosts` works.
1 parent d41f2a4 commit c212e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/providers/apple.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Edit your host file and point your site to `127.0.0.1`.
6464
_Linux/macOS_
6565

6666
```
67-
sudo echo '127.0.0.1 dev.example.com' >> /etc/hosts
67+
echo '127.0.0.1 dev.example.com' | sudo tee -a /etc/hosts
6868
```
6969

7070
_Windows_ (run PowerShell as administrator)

0 commit comments

Comments
 (0)