From 1a258f32b05c66a476ed9668e62ac9de92ea88f7 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 5 Jan 2019 14:53:19 +0100 Subject: [PATCH] fixed npm detection when fish is the default shell (#584) --- terminus-plugin-manager/src/services/pluginManager.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminus-plugin-manager/src/services/pluginManager.service.ts b/terminus-plugin-manager/src/services/pluginManager.service.ts index 7beba457..fd0091b3 100644 --- a/terminus-plugin-manager/src/services/pluginManager.service.ts +++ b/terminus-plugin-manager/src/services/pluginManager.service.ts @@ -48,7 +48,7 @@ export class PluginManagerService { return } if (this.hostApp.platform !== Platform.Windows) { - this.envPath = (await exec('$SHELL -c -i \'echo $PATH\''))[0].toString().trim() + this.envPath = (await exec('$SHELL -i -c \'echo $PATH\''))[0].toString().trim() let searchPaths = this.envPath.split(':') for (let searchPath of searchPaths) { if (await fs.exists(path.join(searchPath, 'npm'))) {