Skip to content

Commit ec93ad1

Browse files
committed
remove shell: true
1 parent 0ef8169 commit ec93ad1

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/update.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,11 @@ export async function handleUpdateCommand(): Promise<void> {
192192
spinner.start(`Upgrading ${PACKAGE_NAME} (${cmdStr})...`);
193193

194194
try {
195-
// shell: true is required on Windows where npm/pnpm/yarn are .cmd shims
196-
await execFileAsync(resolved.command, resolved.args, { shell: true });
195+
await execFileAsync(resolved.command, resolved.args);
197196

198197
let versionLine = "Upgrade complete";
199198
try {
200-
const { stdout } = await execFileAsync(BIN_NAME, ["--version"], {
201-
shell: true,
202-
});
199+
const { stdout } = await execFileAsync(BIN_NAME, ["--version"]);
203200
versionLine = `Upgraded to ${stdout.trim()}`;
204201
} catch {
205202
// Binary may not be on PATH yet; that's fine

0 commit comments

Comments
 (0)