From 7f7c4d3e36833ac1fecabef1fc2d6a9acbefd354 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Thu, 25 Jul 2019 15:41:02 +0100 Subject: [PATCH 1/2] Add '-S' after /usr/bin/env in shebangs --- examples/catj.ts | 2 +- examples/gist.ts | 2 +- format.ts | 2 +- http/file_server.ts | 2 +- installer/mod.ts | 4 ++-- prettier/main.ts | 2 +- test.ts | 2 +- uuid/test.ts | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/catj.ts b/examples/catj.ts index 82fec5ff9eba..79a129780409 100644 --- a/examples/catj.ts +++ b/examples/catj.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env deno --allow-read +#!/usr/bin/env -S deno --allow-read // Ported from: https://github.com/soheilpro/catj // Copyright (c) 2014 Soheil Rashidi // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. diff --git a/examples/gist.ts b/examples/gist.ts index 6b5611120e86..7c52662b4965 100755 --- a/examples/gist.ts +++ b/examples/gist.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env deno --allow-net --allow-env +#!/usr/bin/env -S deno --allow-net --allow-env // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. const { args, env, exit, readFile } = Deno; diff --git a/format.ts b/format.ts index f0465af50998..ca5648553886 100755 --- a/format.ts +++ b/format.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env deno run --allow-run --allow-write --allow-read +#!/usr/bin/env -S deno run --allow-run --allow-write --allow-read // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. const { exit, args, execPath } = Deno; import { parse } from "./flags/mod.ts"; diff --git a/http/file_server.ts b/http/file_server.ts index 7d1d132c9fbe..903d99c21d92 100755 --- a/http/file_server.ts +++ b/http/file_server.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env deno --allow-net +#!/usr/bin/env -S deno --allow-net // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // This program serves files in the current directory over HTTP. diff --git a/installer/mod.ts b/installer/mod.ts index d7ab125b31cf..927485342e38 100644 --- a/installer/mod.ts +++ b/installer/mod.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env deno --allow-all +#!/usr/bin/env -S deno --allow-all // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. const { env, stdin, args, exit, writeFile, chmod, run } = Deno; import { parse } from "../flags/mod.ts"; @@ -24,7 +24,7 @@ ARGS: SCRIPT_URL Local or remote URL of script to install [FLAGS...] List of flags for script, both Deno permission and script specific flag can be used. - + OPTIONS: -d, --dir Installation directory path (defaults to ~/.deno/bin) `); diff --git a/prettier/main.ts b/prettier/main.ts index 03fe4605cd07..1afda89d1fba 100755 --- a/prettier/main.ts +++ b/prettier/main.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env deno --allow-run --allow-write +#!/usr/bin/env -S deno --allow-run --allow-write /** * Copyright © James Long and contributors * diff --git a/test.ts b/test.ts index b3497da27701..8e292191e4ef 100755 --- a/test.ts +++ b/test.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env deno run -A +#!/usr/bin/env -S deno run -A // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import "./archive/tar_test.ts"; import "./bytes/test.ts"; diff --git a/uuid/test.ts b/uuid/test.ts index 72616d3efebe..257e07caff29 100755 --- a/uuid/test.ts +++ b/uuid/test.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env deno run +#!/usr/bin/env -S deno run // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { runIfMain } from "../testing/mod.ts"; From 08a805e16bb5ed3655c92538add491c6c4c0ed36 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Fri, 26 Jul 2019 11:43:11 +0100 Subject: [PATCH 2/2] Simplify a module specifier --- testing/test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test.ts b/testing/test.ts index 8c0644272557..c726ffb1abe8 100644 --- a/testing/test.ts +++ b/testing/test.ts @@ -6,7 +6,7 @@ import { assertStrictEq, assertThrows, assertThrowsAsync -} from "../testing/asserts.ts"; +} from "./asserts.ts"; import "./format_test.ts"; import "./diff_test.ts"; import "./pretty_test.ts";