From 36ff9640a010fa7a6e1b914963f3ef162e81124a Mon Sep 17 00:00:00 2001 From: Jerry Date: Wed, 16 Dec 2020 16:08:38 +0800 Subject: [PATCH] fix --- scripts/check-named-zones.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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