Quellcode durchsuchen

Force sha256 file to be ASCII encoded

Signed-off-by: Nicolas De Loof <[email protected]>
Nicolas De Loof vor 6 Jahren
Ursprung
Commit
a9c79bd5b1
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      Release.Jenkinsfile

+ 1 - 1
Release.Jenkinsfile

@@ -296,6 +296,6 @@ def checksum(filepath) {
     if (isUnix()) {
         sh "openssl sha256 -r -out ${filepath}.sha256 ${filepath}"
     } else {
-        powershell "(Get-FileHash -Path ${filepath} -Algorithm SHA256 | % hash) + ' *${filepath}' > ${filepath}.sha256"
+        powershell "(Get-FileHash -Path ${filepath} -Algorithm SHA256 | % hash).ToLower() + ' *${filepath}' | Out-File -encoding ascii ${filepath}.sha256"
     }
 }