mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 23:24:37 +00:00
Make shebangs Linux compatible (denoland/deno_std#545)
Original: 5e77e8adc7
This commit is contained in:
parent
faf2cd92fc
commit
ad6360edf9
9 changed files with 10 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env deno --allow-read
|
#!/usr/bin/env -S deno --allow-read
|
||||||
// Ported from: https://github.com/soheilpro/catj
|
// Ported from: https://github.com/soheilpro/catj
|
||||||
// Copyright (c) 2014 Soheil Rashidi
|
// Copyright (c) 2014 Soheil Rashidi
|
||||||
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
|
@ -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.
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
const { args, env, exit, readFile } = Deno;
|
const { args, env, exit, readFile } = Deno;
|
||||||
|
|
|
@ -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.
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
const { exit, args, execPath } = Deno;
|
const { exit, args, execPath } = Deno;
|
||||||
import { parse } from "./flags/mod.ts";
|
import { parse } from "./flags/mod.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.
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
|
|
||||||
// This program serves files in the current directory over HTTP.
|
// This program serves files in the current directory over HTTP.
|
||||||
|
|
|
@ -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.
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
const { env, stdin, args, exit, writeFile, chmod, run } = Deno;
|
const { env, stdin, args, exit, writeFile, chmod, run } = Deno;
|
||||||
import { parse } from "../flags/mod.ts";
|
import { parse } from "../flags/mod.ts";
|
||||||
|
@ -24,7 +24,7 @@ ARGS:
|
||||||
SCRIPT_URL Local or remote URL of script to install
|
SCRIPT_URL Local or remote URL of script to install
|
||||||
[FLAGS...] List of flags for script, both Deno permission and script specific
|
[FLAGS...] List of flags for script, both Deno permission and script specific
|
||||||
flag can be used.
|
flag can be used.
|
||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
-d, --dir <PATH> Installation directory path (defaults to ~/.deno/bin)
|
-d, --dir <PATH> Installation directory path (defaults to ~/.deno/bin)
|
||||||
`);
|
`);
|
||||||
|
|
|
@ -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
|
* Copyright © James Long and contributors
|
||||||
*
|
*
|
||||||
|
|
2
test.ts
2
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.
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
import "./archive/tar_test.ts";
|
import "./archive/tar_test.ts";
|
||||||
import "./bytes/test.ts";
|
import "./bytes/test.ts";
|
||||||
|
|
|
@ -6,7 +6,7 @@ import {
|
||||||
assertStrictEq,
|
assertStrictEq,
|
||||||
assertThrows,
|
assertThrows,
|
||||||
assertThrowsAsync
|
assertThrowsAsync
|
||||||
} from "../testing/asserts.ts";
|
} from "./asserts.ts";
|
||||||
import "./format_test.ts";
|
import "./format_test.ts";
|
||||||
import "./diff_test.ts";
|
import "./diff_test.ts";
|
||||||
import "./pretty_test.ts";
|
import "./pretty_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.
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
import { runIfMain } from "../testing/mod.ts";
|
import { runIfMain } from "../testing/mod.ts";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue