diff --git a/sri.ps1 b/sri.ps1 index 161a54f..ce31c1a 100644 --- a/sri.ps1 +++ b/sri.ps1 @@ -46,6 +46,7 @@ function hashSHA($type){ function doHash($file, $hash){ $fileContents = Get-Content $file -Raw + $fileContents = Get-Content $file -Raw -ErrorAction SilentlyContinue try { $hashBytes = $hash.ComputeHash([System.Text.Encoding]::UTF8.GetBytes($fileContents)) return [System.Convert]::ToBase64String($hashBytes)