diff --git a/index.js b/index.js index c6da9b4..5fe49ad 100644 --- a/index.js +++ b/index.js @@ -62,7 +62,7 @@ module.exports = async (target, options) => { if (options.app) { cliArguments.push('-a', options.app); } - } else if (process.platform === 'win32' || (isWsl && !isDocker)) { + } else if (process.platform === 'win32' || (isWsl && !isDocker())) { command = 'cmd' + (isWsl ? '.exe' : ''); cliArguments.push('/s', '/c', 'start', '""', '/b'); diff --git a/package.json b/package.json index 3e180e8..24468a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "open", - "version": "7.0.1", + "version": "7.0.2", "description": "Open stuff like URLs, files, executables. Cross-platform.", "license": "MIT", "repository": "sindresorhus/open",