Skip to content

Conversation

@kwkam
Copy link
Contributor

@kwkam kwkam commented Aug 12, 2018

PR Summary

Allow custom location for rcedit.exe

PR Checklist

build.psm1 Outdated
if (-not (Test-Path "~/.rcedit/rcedit-x64.exe")) {
$rcedit = "~/.rcedit/rcedit-x64.exe"
if (-not (Test-Path -Type Leaf $rcedit)) {
$rcedit = Get-Command rcedit-x64 -ErrorAction SilentlyContinue | Select-Object -First 1 | % Name
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be Get-Command rcedit-x64.exe -CommandType Application -ErrorAction SilentlyContinue ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's better.

@iSazonov iSazonov changed the title build: also search PATH for rcedit Search rcedit by PATHs Aug 13, 2018
Copy link
Contributor

@dantraMSFT dantraMSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor note: I suggest changing the PR description to something indicating the PATH is used as a fallback. Something like 'Use PATH to find rdedit if not found in the expected location.'

Other than that, LGTM.

@TravisEz13 TravisEz13 changed the title Search rcedit by PATHs build: Also search PATH for rcedit Aug 13, 2018
@TravisEz13
Copy link
Member

VSTS issue is known and fixed. ignoring since we are still running in parallel with travis-ci

@TravisEz13 TravisEz13 merged commit 820286e into PowerShell:master Aug 14, 2018
@kwkam kwkam deleted the build-rcedit branch January 11, 2019 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants