diff --git a/scripts/check-named-zones.sh b/scripts/check-named-zones.sh index 20a43e8..7f7ed02 100755 --- a/scripts/check-named-zones.sh +++ b/scripts/check-named-zones.sh @@ -4,10 +4,17 @@ set -eo pipefail [ -n "$CI" ] -sudo apt update -qq -sudo DEBIAN_FRONTEND=noninteractive apt -o Dpkg::Options::=--force-confold install -y --no-install-recommends bind9-utils +install() { + sudo DEBIAN_FRONTEND=noninteractive apt \ + -o Dpkg::Options::=--force-confold \ + install -y --no-install-recommends \ + bind9-utils +} +install || { sudo apt update -qq; install; } -alias check='PATH=/sbin:/usr/sbin:$PATH named-checkzone -i local' +check() { + PATH=/sbin:/usr/sbin:$PATH named-checkzone -i local $@ +} pushd dns