Skip to content

Commit 2fed8cd

Browse files
author
Joachim Marder
committed
Fixed case if no location of UICC.exe was passed to the script.
1 parent 646b770 commit 2fed8cd

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Designer/Bin/Generate.Ribbon.Markup.pas.ps1

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,14 @@ $UICCDir = $args[2]
4343
function FindFileInLocation($pLocation, $pFileName)
4444
{
4545
# 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-
}
46+
if ($pLocation)
47+
{
48+
$lPath = Join-Path $pLocation $pFileName
49+
if (Test-Path $lPath)
50+
{
51+
return $lPath
52+
}
53+
}
5154
# Check if the file exists under %PATH%
5255
if (Get-Command $pFileName -ErrorAction SilentlyContinue)
5356
{

0 commit comments

Comments
 (0)