We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ef8169 commit ec93ad1Copy full SHA for ec93ad1
1 file changed
src/update.ts
@@ -192,14 +192,11 @@ export async function handleUpdateCommand(): Promise<void> {
192
spinner.start(`Upgrading ${PACKAGE_NAME} (${cmdStr})...`);
193
194
try {
195
- // shell: true is required on Windows where npm/pnpm/yarn are .cmd shims
196
- await execFileAsync(resolved.command, resolved.args, { shell: true });
+ await execFileAsync(resolved.command, resolved.args);
197
198
let versionLine = "Upgrade complete";
199
200
- const { stdout } = await execFileAsync(BIN_NAME, ["--version"], {
201
- shell: true,
202
- });
+ const { stdout } = await execFileAsync(BIN_NAME, ["--version"]);
203
versionLine = `Upgraded to ${stdout.trim()}`;
204
} catch {
205
// Binary may not be on PATH yet; that's fine
0 commit comments