Eugene Pankov 3 anni fa
parent
commit
d3d09dfd44
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      tabby-local/src/shells/windowsStock.ts

+ 1 - 1
tabby-local/src/shells/windowsStock.ts

@@ -74,7 +74,7 @@ export class WindowsStockShellsProvider extends ShellProvider {
 
 
     private async getPowerShellPath () {
     private async getPowerShellPath () {
         for (const name of ['pwsh.exe', 'powershell.exe']) {
         for (const name of ['pwsh.exe', 'powershell.exe']) {
-            if (await promisify(hasbin)(name)) {
+            if (await new Promise(resolve => hasbin(name, resolve))) {
                 return name
                 return name
             }
             }
         }
         }