mirror of https://github.com/aminya/setup-cpp
fix: error if powershell is not installed
This commit is contained in:
parent
1410ebe4ca
commit
970f52c9f9
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -14,6 +14,9 @@ export function execPowershell(command: string) {
|
|||
powershell = maybePowerShell
|
||||
}
|
||||
}
|
||||
if (powershell === undefined) {
|
||||
throw new Error("Could not find powershell")
|
||||
}
|
||||
|
||||
execa.sync(`${powershell} -C "${command}"`)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue