Skip to content

Commit

Permalink
Bug 1761633 - Silence the possible error from Get-Command r=mhentges …
Browse files Browse the repository at this point in the history
…DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D142159
  • Loading branch information
saschanaz committed Mar 28, 2022
1 parent c2f7519 commit 4c26051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mach.ps1
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 4c26051

Please sign in to comment.