summaryrefslogtreecommitdiffstats
path: root/knot-resolver/bin/kresd-cache-clear
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-30 22:02:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-30 22:02:24 +0000
commit4b2ffced088c16fab3660444f596d14063122205 (patch)
tree34bef914328f7b6df83ddf515a645c27b667ebf0 /knot-resolver/bin/kresd-cache-clear
parentAdding upstream version 20220414. (diff)
downloadopen-infrastructure-service-tools-4b2ffced088c16fab3660444f596d14063122205.tar.xz
open-infrastructure-service-tools-4b2ffced088c16fab3660444f596d14063122205.zip
Adding upstream version 20220430.upstream/20220430
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'knot-resolver/bin/kresd-cache-clear')
-rwxr-xr-xknot-resolver/bin/kresd-cache-clear8
1 files changed, 1 insertions, 7 deletions
diff --git a/knot-resolver/bin/kresd-cache-clear b/knot-resolver/bin/kresd-cache-clear
index 79e62a8..49c2462 100755
--- a/knot-resolver/bin/kresd-cache-clear
+++ b/knot-resolver/bin/kresd-cache-clear
@@ -21,13 +21,7 @@
set -e
-HOSTS="${*}"
-
-if [ -z "${HOSTS}" ]
-then
- echo "Usage: ${0} localhost|[HOST1 HOST2 ...]" >&2
- exit 1
-fi
+HOSTS="${*:-localhost}"
for HOST in ${HOSTS}
do