Skip to content

Commit

Permalink
test parameter before usage
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Nov 25, 2022
1 parent 25696ce commit fa9d5e2
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 fa9d5e2

Please sign in to comment.