mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
[bootstrap-vcpkg.sh] Attempt invoking gsha512sum if sha512sum failed (#36815)
Fixes #36808 .
This commit is contained in:
parent
89522eaec8
commit
e56312cb3d
@ -124,8 +124,11 @@ vcpkgCheckEqualFileHash()
|
|||||||
|
|
||||||
if command -v "sha512sum" >/dev/null 2>&1 ; then
|
if command -v "sha512sum" >/dev/null 2>&1 ; then
|
||||||
actualHash=$(sha512sum "$filePath")
|
actualHash=$(sha512sum "$filePath")
|
||||||
|
elif command -v "gsha512sum" >/dev/null 2>&1 ; then
|
||||||
|
# OpenBSD's coreutil's sha512sum is prefixed with a `g`
|
||||||
|
actualHash=$(gsha512sum "$filePath")
|
||||||
else
|
else
|
||||||
# sha512sum is not available by default on osx
|
# [g]sha512sum is not available by default on osx
|
||||||
# shasum is not available by default on Fedora
|
# shasum is not available by default on Fedora
|
||||||
actualHash=$(shasum -a 512 "$filePath")
|
actualHash=$(shasum -a 512 "$filePath")
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user