powerShell added default path
This commit is contained in:
parent
aff943cbe4
commit
e6a40d94bc
@ -336,7 +336,7 @@ function findObjectByKey(array, key, value) {
|
||||
function getPowershell() {
|
||||
_powerShell = 'powershell.exe';
|
||||
if (_windows) {
|
||||
defaultPath = `${WINDIR}\\WindowsPowerShell\\v1.0\\powershell.exe`;
|
||||
const defaultPath = `${WINDIR}\\system32\\WindowsPowerShell\\v1.0\\powershell.exe`;
|
||||
if (fs.existsSync(defaultPath)) {
|
||||
_powerShell = defaultPath;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user