Skip to content

Commit

Permalink
use bash
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed Aug 25, 2024
1 parent fd504cd commit 49289fd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tasks/run_script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import config from "../deno.json" with { type: "json" };

const taskName = Deno.args[0] as keyof typeof config.scripts;
const script = config.scripts[taskName];
const prefix = "shopt -s extglob; ";

console.log(blue("$"), script);

await new Deno.Command("sh", {
args: ["-O", "extglob", "-c", `${prefix} ${script}`],
await new Deno.Command("bash", {
args: ["-c", script],
stdout: "inherit",
stderr: "inherit",
}).output();

0 comments on commit 49289fd

Please sign in to comment.