Skip to content

Commit

Permalink
Fix for Tools/SandboxTest.ps1 to handle missing dependency files (mic…
Browse files Browse the repository at this point in the history
  • Loading branch information
RoscoP authored Dec 6, 2024
1 parent e4b5f78 commit 14d7d98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/SandboxTest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ function Test-FileChecksum {
)

# Get the hash of the file that is currently at the expected location for the dependency; This can be $null
$currentHash = (Get-FileHash -Path $Path -Algorithm $Algorithm -ErrorAction SilentlyContinue).Hash
return ($currentHash -eq $ExpectedChecksum)
$currentHash = Get-FileHash -Path $Path -Algorithm $Algorithm -ErrorAction SilentlyContinue
return ($currentHash -and $currentHash.Hash -eq $ExpectedChecksum)
}

#### Start of main script ####
Expand Down

0 comments on commit 14d7d98

Please sign in to comment.