forked from mirrors/gecko-dev
Bug 1761633 - Silence the possible error from Get-Command r=mhentges DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D142159
This commit is contained in:
parent
c2f751983d
commit
4c260516df
1 changed files with 1 additions and 1 deletions
2
mach.ps1
2
mach.ps1
|
|
@ -1,7 +1,7 @@
|
|||
$mypath = $MyInvocation.MyCommand.Path
|
||||
$machpath = $mypath.substring(0, $mypath.length - 4)
|
||||
|
||||
if (Get-Command py) {
|
||||
if (Get-Command py -ErrorAction SilentlyContinue) {
|
||||
$python_executable = "py"
|
||||
} else {
|
||||
$python_executable = "python"
|
||||
|
|
|
|||
Loading…
Reference in a new issue