Skip to content

Commit

Permalink
fix: avoid @echo off
Browse files Browse the repository at this point in the history
Co-authored-by: Roy Ivy III <[email protected]>
  • Loading branch information
merceyz and rivy committed Dec 13, 2020
1 parent 07f4f30 commit a9fbf4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/yarnpkg-core/sources/scriptUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ enum PackageManager {
async function makePathWrapper(location: PortablePath, name: Filename, argv0: NativePath, args: Array<string> = []) {
if (process.platform === `win32`) {
// https://github.com/microsoft/terminal/issues/217#issuecomment-737594785
const cmdScript = `@echo off\ngoto #_undefined_# 2>NUL || title %COMSPEC% & "${argv0}" ${args.map(arg => `"${arg.replace(`"`, `""`)}"`).join(` `)} %*`;
const cmdScript = `@goto #_undefined_# 2>NUL || @title %COMSPEC% & @"${argv0}" ${args.map(arg => `"${arg.replace(`"`, `""`)}"`).join(` `)} %*`;
await xfs.writeFilePromise(ppath.format({dir: location, name, ext: `.cmd`}), cmdScript);
}

Expand Down

0 comments on commit a9fbf4e

Please sign in to comment.