Skip to content

Commit

Permalink
Merge pull request #2803 from freddydk/master
Browse files Browse the repository at this point in the history
test parameter before usage
  • Loading branch information
freddydk authored Nov 25, 2022
2 parents 25696ce + fa9d5e2 commit 8787008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ContainerHandling/New-NavImage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ try {
if (!$skipDatabase) {
$dbPath = Join-Path $navDvdPath "SQLDemoDatabase\CommonAppData\Microsoft\Microsoft Dynamics NAV\ver\Database"
New-Item $dbPath -ItemType Directory | Out-Null
if (Test-Path $databaseBackupPath -PathType Leaf)
if (($databaseBackupPath) -and (Test-Path $databaseBackupPath -PathType Leaf))
{
Write-Host "Using database backup from $databaseBackupPath"
$databasePath = $databaseBackupPath
Expand Down

0 comments on commit 8787008

Please sign in to comment.