Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make shebangs Linux compatible #545

Merged
merged 2 commits into from
Jul 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/catj.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion examples/gist.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion format.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion http/file_server.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions installer/mod.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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 <PATH> Installation directory path (defaults to ~/.deno/bin)
`);
Expand Down
2 changes: 1 addition & 1 deletion prettier/main.ts
Original file line number Diff line number Diff line change
@@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion test.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 1 addition & 1 deletion testing/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion uuid/test.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down