We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65de8ee commit 22e9afeCopy full SHA for 22e9afe
contrib/install_db4.sh
@@ -32,16 +32,15 @@ check_exists() {
32
sha256_check() {
33
# Args: <sha256_hash> <filename>
34
#
35
- if check_exists sha256sum; then
36
- echo "${1} ${2}" | sha256sum -c
+ if [ "$(uname)" = "FreeBSD" ]; then
+ # sha256sum exists on FreeBSD, but takes different arguments than the GNU version
37
+ sha256 -c "${1}" "${2}"
38
+ elif check_exists sha256sum; then
39
+ echo "${1} ${2}" | sha256sum -c
40
elif check_exists sha256; then
- if [ "$(uname)" = "FreeBSD" ]; then
- sha256 -c "${1}" "${2}"
- else
41
- echo "${1} ${2}" | sha256 -c
42
- fi
+ echo "${1} ${2}" | sha256 -c
43
else
44
- echo "${1} ${2}" | shasum -a 256 -c
+ echo "${1} ${2}" | shasum -a 256 -c
45
fi
46
}
47
0 commit comments