We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 646b770 commit 2fed8cdCopy full SHA for 2fed8cd
Designer/Bin/Generate.Ribbon.Markup.pas.ps1
@@ -43,11 +43,14 @@ $UICCDir = $args[2]
43
function FindFileInLocation($pLocation, $pFileName)
44
{
45
# First check if a valid path was passed via the command line
46
- $lPath = Join-Path $pLocation $pFileName
47
- if (Test-Path $lPath)
48
- {
49
- return $lPath
50
- }
+ if ($pLocation)
+ {
+ $lPath = Join-Path $pLocation $pFileName
+ if (Test-Path $lPath)
51
+ return $lPath
52
+ }
53
54
# Check if the file exists under %PATH%
55
if (Get-Command $pFileName -ErrorAction SilentlyContinue)
56
0 commit comments