From 20f95a3c4cb35a9a115c4412d8377d2dbd051afa Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Sun, 21 Feb 2016 19:30:06 +0100 Subject: [PATCH] detect (g)md5sum to support osx brew usage --- regression-tests.nobackend/tinydns-data-check/command | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/regression-tests.nobackend/tinydns-data-check/command b/regression-tests.nobackend/tinydns-data-check/command index 4a8c746fe..81e2dcd51 100755 --- a/regression-tests.nobackend/tinydns-data-check/command +++ b/regression-tests.nobackend/tinydns-data-check/command @@ -1,7 +1,11 @@ #!/usr/bin/env bash +MD5SUM=$(which md5sum) +[ -z "$MD5SUM" ] && MD5SUM=$(which gmd5sum) +[ -z "$MD5SUM" ] && exit 1 + for zone in `cat ../regression-tests/named.conf | grep 'zone ' | cut -f 2 -d \"` do - md5sum ../regression-tests/zones/$zone + ${MD5SUM} ../regression-tests/zones/$zone done -md5sum ../modules/tinydnsbackend/data.cdb +${MD5SUM} ../modules/tinydnsbackend/data.cdb -- 2.40.0