Skip to content

Commit

Permalink
Fix app option on Windows (#172)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
Hongarc and sindresorhus committed Mar 9, 2020
1 parent d8bf43e commit 30f4abe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Expand Up @@ -77,6 +77,10 @@ module.exports = async (target, options) => {
// As a result, all double-quotes are stripped from the `target` and do not get to your desired destination.
target = `"${target}"`;
childProcessOptions.windowsVerbatimArguments = true;

if (options.app) {
options.app = `"${options.app}"`;
}
}

if (options.wait) {
Expand Down

0 comments on commit 30f4abe

Please sign in to comment.