Skip to content

Commit

Permalink
fix(wsl/setup-git.ts): fix uncorrectly escaped gh auth commands (#848)
Browse files Browse the repository at this point in the history
  • Loading branch information
risu729 authored Nov 14, 2024
1 parent b4a395a commit 85e66f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wsl/setup-git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const ensureGitHubTokenScopes = async (): Promise<() => Promise<void>> => {
// bun shell doesn't support reading from stdout and stderr while running a command
// ref: https://github.com/oven-sh/bun/issues/14693
const process = spawn(
["gh", "auth", ...$.escape(subcommand).split(" ")],
["gh", "auth", ...subcommand.split(" ")],
// default is "inherit" which just logs to the console
// ref: https://bun.sh/docs/api/spawn#output-streams
{ stderr: "pipe" },
Expand Down

0 comments on commit 85e66f7

Please sign in to comment.