mirror of https://github.com/docker/compose.git
Force sha256 file to be ASCII encoded
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
ebc56c5ade
commit
a9c79bd5b1
|
@ -296,6 +296,6 @@ def checksum(filepath) {
|
||||||
if (isUnix()) {
|
if (isUnix()) {
|
||||||
sh "openssl sha256 -r -out ${filepath}.sha256 ${filepath}"
|
sh "openssl sha256 -r -out ${filepath}.sha256 ${filepath}"
|
||||||
} else {
|
} 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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue