Skip to content

Commit 3dc2395

Browse files
authored
fix: the proxy script (#247)
1 parent 6f96d25 commit 3dc2395

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/en/nix-store/add-binary-cache-servers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ If you only need to use a proxy temporarily, you can set the proxy environment v
294294
with the following commands:
295295

296296
```bash
297-
sudo mkdir /run/systemd/system/nix-daemon.service.d/
298-
cat << EOF >/run/systemd/system/nix-daemon.service.d/override.conf
297+
sudo mkdir -p /run/systemd/system/nix-daemon.service.d/
298+
sudo tee /run/systemd/system/nix-daemon.service.d/override.conf <<EOF
299299
[Service]
300300
Environment="https_proxy=socks5h://localhost:7891"
301301
EOF

docs/zh/nix-store/add-binary-cache-servers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,8 @@ Nix 提供了
271271
如果你只是临时需要使用代理,可以通过如下命令设置代理环境变量:
272272

273273
```bash
274-
sudo mkdir /run/systemd/system/nix-daemon.service.d/
275-
cat << EOF >/run/systemd/system/nix-daemon.service.d/override.conf
274+
sudo mkdir -p /run/systemd/system/nix-daemon.service.d/
275+
sudo tee /run/systemd/system/nix-daemon.service.d/override.conf <<EOF
276276
[Service]
277277
Environment="https_proxy=socks5h://localhost:7891"
278278
EOF

0 commit comments

Comments
 (0)