summaryrefslogtreecommitdiffstats
path: root/knot-resolver/bin
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-30 22:02:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-04-30 22:02:33 +0000
commit53f636bbbfd5d49588c9c7a6c91be66f5be10f96 (patch)
tree55cdbf54ef0ddf492c8df5c61ae0f3841b4d2082 /knot-resolver/bin
parentReleasing debian version 20220414-1. (diff)
downloadopen-infrastructure-service-tools-53f636bbbfd5d49588c9c7a6c91be66f5be10f96.tar.xz
open-infrastructure-service-tools-53f636bbbfd5d49588c9c7a6c91be66f5be10f96.zip
Merging upstream version 20220430.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'knot-resolver/bin')
-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