From 0f7491f42138498a58de83d2e099edad3e1fc52f Mon Sep 17 00:00:00 2001 From: Tony Brix Date: Mon, 15 Feb 2021 23:23:26 -0600 Subject: [PATCH] fix: remove quotes around `apm` --- src/helpers/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/index.ts b/src/helpers/index.ts index c10e743..739a58f 100644 --- a/src/helpers/index.ts +++ b/src/helpers/index.ts @@ -126,9 +126,9 @@ const INSTALL_VALID_TICKS = new Set(['✓', 'done']) const INSTALL_VALIDATION_REGEXP = /(?:Installing|Moving) (.*?) to .* (.*)/ // Example success output: Uninstalling linter-ui-default ✓ export async function installPackage(dependency: DependencyResolved): Promise { - const apmPath = IS_ATOM ? atom.packages.getApmPath() : 'apm' + const apmPath = IS_ATOM ? `"${atom.packages.getApmPath()}"` : 'apm' - const { stdout, stderr } = await spawn(`"${apmPath}"`, ['install', dependency.name, '--production', '--color', 'false'], { + const { stdout, stderr } = await spawn(apmPath, ['install', dependency.name, '--production', '--color', 'false'], { shell: true, })