Merge pull request #1089 from weaveworks/1086_dns_search_without_equals

detect `--dns-search <arg>`
This commit is contained in:
Adam Harrison committed 2015-07-07 10:16:21 +01:00
commit bde445df9b
1 file changed
+7 -7
+7 -7
View File
@@ -664,8 +664,11 @@ dns_args() {
WITHOUT_DNS=
while [ $# -gt 0 ] ; do
case "$1" in
--dns-search=*)
DNS_SEARCH_SPECIFIED=1
--with-dns)
WITH_DNS=1
;;
--without-dns)
WITHOUT_DNS=1
;;
--name)
NAME_ARG="$2"
@@ -677,11 +680,8 @@ dns_args() {
-h|--hostname|--hostname=*)
HOSTNAME_SPECIFIED=1
;;
--with-dns)
WITH_DNS=1
;;
--without-dns)
WITHOUT_DNS=1
--dns-search|--dns-search=*)
DNS_SEARCH_SPECIFIED=1
;;
esac
shift