From 4afb4b6e46de2ed536a3c9828d70d7799b5b6d03 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 31 Jul 2020 11:12:20 +0200 Subject: feat: add $STD_VERSION replacement variable in docs (#6922) --- docs/getting_started/permissions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/getting_started/permissions.md') diff --git a/docs/getting_started/permissions.md b/docs/getting_started/permissions.md index 72cd9d6d6..70c3c2bd1 100644 --- a/docs/getting_started/permissions.md +++ b/docs/getting_started/permissions.md @@ -47,7 +47,7 @@ directory, however the execution fails as the process was attempting to access a file in the `/etc` directory: ```shell -$ deno run --allow-read=/usr https://deno.land/std/examples/cat.ts /etc/passwd +$ deno run --allow-read=/usr https://deno.land/std@$STD_VERSION/examples/cat.ts /etc/passwd error: Uncaught PermissionDenied: read access to "/etc/passwd", run again with the --allow-read flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) @@ -57,7 +57,7 @@ error: Uncaught PermissionDenied: read access to "/etc/passwd", run again with t Try it out again with the correct permissions by allow-listing `/etc` instead: ```shell -deno run --allow-read=/etc https://deno.land/std/examples/cat.ts /etc/passwd +deno run --allow-read=/etc https://deno.land/std@$STD_VERSION/examples/cat.ts /etc/passwd ``` `--allow-write` works the same as `--allow-read`. -- cgit v1.2.3