Browse Source

Add a tool for visual zone diff

pull/2/head
Boian Bonev 2 years ago
parent
commit
e1d8af26b7
Signed by: bbonev GPG Key ID: 1365720913D2F22D
  1. 22
      zonediff.sh

22
zonediff.sh

@ -0,0 +1,22 @@
#!/bin/bash
DIFF=$(command -v colordiff)
if [ -z "${DIFF}" ]; then
DIFF=$(command -v diff)
if [ -z "${DIFF}" ]; then
echo Can not find diff or colordiff, abort...
exit 1
fi
fi
if [ $(pwd) != /etc/nsd/GIT ]; then
echo Please start in /etc/nsd/GIT, abort...
exit 1
fi
for i in *.zone nsd.conf; do
if [ -f ../${i} ]; then
${DIFF} -u ../${i} ${i}
fi
done
Loading…
Cancel
Save