From b8bbaef7be8272ccb66aefcb7f78bda109cb7eb6 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Fri, 12 Oct 2018 00:00:12 +0200 Subject: [PATCH] fixed #444 --- terminus-terminal/src/shells/gitBash.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/terminus-terminal/src/shells/gitBash.ts b/terminus-terminal/src/shells/gitBash.ts index c394871e..d8df08b8 100644 --- a/terminus-terminal/src/shells/gitBash.ts +++ b/terminus-terminal/src/shells/gitBash.ts @@ -1,6 +1,6 @@ import * as path from 'path' import { Injectable } from '@angular/core' -import { Registry } from 'rage-edit' +import { Registry } from 'rage-edit-tmp' import { HostAppService, Platform } from 'terminus-core' import { ShellProvider, IShell } from '../api' @@ -21,16 +21,7 @@ export class GitBashShellProvider extends ShellProvider { let gitBashPath = await Registry.get('HKLM\\Software\\GitForWindows', 'InstallPath') if (!gitBashPath) { - gitBashPath = await new Promise(resolve => { - let reg = new Registry({ hive: Registry.HKCU, key: '\\Software\\GitForWindows' }) - reg.get('InstallPath', (err, item) => { - if (err || !item) { - resolve(null) - return - } - resolve(item.value) - }) - }) + gitBashPath = await Registry.get('HKCU\\Software\\GitForWindows', 'InstallPath') } if (!gitBashPath) {