diff options
Diffstat (limited to 'contrib/install_db4.sh')
-rwxr-xr-x | contrib/install_db4.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/install_db4.sh b/contrib/install_db4.sh index 909fa2eabe..b57ade139d 100755 --- a/contrib/install_db4.sh +++ b/contrib/install_db4.sh @@ -31,7 +31,11 @@ sha256_check() { if check_exists sha256sum; then echo "${1} ${2}" | sha256sum -c elif check_exists sha256; then - echo "${1} ${2}" | sha256 -c + if [ "$(uname)" = "FreeBSD" ]; then + sha256 -c "${1}" "${2}" + else + echo "${1} ${2}" | sha256 -c + fi else echo "${1} ${2}" | shasum -a 256 -c fi |