You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
384 B
22 lines
384 B
#!/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 generate-rr.php; do
|
|
if [ -f ../${i} ]; then
|
|
${DIFF} -u ../${i} ${i}
|
|
fi
|
|
done
|
|
|
|
|