Skip to content

Commit 4c26051

Browse files
committed
Bug 1761633 - Silence the possible error from Get-Command r=mhentges DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D142159
1 parent c2f7519 commit 4c26051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mach.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$mypath = $MyInvocation.MyCommand.Path
22
$machpath = $mypath.substring(0, $mypath.length - 4)
33

4-
if (Get-Command py) {
4+
if (Get-Command py -ErrorAction SilentlyContinue) {
55
$python_executable = "py"
66
} else {
77
$python_executable = "python"

0 commit comments

Comments
 (0)