Skip to content

Commit

Permalink
Added check for whitespace in file that contains the native version.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed May 31, 2024
1 parent 5a8eb27 commit 16a8a82
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Magick.Native/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,12 @@ function createTrademarkAttribute($source, $target) {
[assembly: System.Reflection.AssemblyTrademark(""ImageMagick $imageMagickVersion"")]"))
}

$version = [IO.File]::ReadAllText("$PSScriptRoot\Magick.Native.version").Trim()
$version = [IO.File]::ReadAllText("$PSScriptRoot\Magick.Native.version")
if ($version -ne $version.Trim()) {
Write-Error "Version contains whitespace"
Exit 1
}

$folder = "$PSScriptRoot\temp"
$libraries = "$PSScriptRoot\libraries"
$windowsLibraries = "$libraries\win"
Expand Down

0 comments on commit 16a8a82

Please sign in to comment.