]> granicus.if.org Git - pdns/commitdiff
detect (g)md5sum to support osx brew usage
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Sun, 21 Feb 2016 18:30:06 +0000 (19:30 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Sun, 21 Feb 2016 18:30:33 +0000 (19:30 +0100)
regression-tests.nobackend/tinydns-data-check/command

index 4a8c746fe07429d1d398132180c57d7b84fc4b0e..81e2dcd5161143abd1f719c8ab3833e9ade22dbf 100755 (executable)
@@ -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