mirror of
https://github.com/Eugeny/tabby.git
synced 2025-08-15 13:51:52 +00:00
fixed #7156
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user