mirror of
https://github.com/Eugeny/tabby.git
synced 2025-04-12 16:10:26 +08:00
fixed #7156
This commit is contained in:
parent
f57ca9fc56
commit
d3d09dfd44
@ -74,7 +74,7 @@ export class WindowsStockShellsProvider extends ShellProvider {
|
||||
|
||||
private async getPowerShellPath () {
|
||||
for (const name of ['pwsh.exe', 'powershell.exe']) {
|
||||
if (await promisify(hasbin)(name)) {
|
||||
if (await new Promise(resolve => hasbin(name, resolve))) {
|
||||
return name
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user