simplify check for --local

This commit is contained in:
Matthias Radestock committed 2015-04-11 17:58:26 +01:00
1 parent 59ae50eb4e
commit 85971193a8
1 file changed
+2 -2
+2 -2
View File
@@ -703,7 +703,7 @@ case "$COMMAND" in
;;
run)
[ $# -gt 0 ] || usage
if [ "$LOCAL" = "--local" ]; then
if [ -n "$LOCAL" ]; then
dns_args "$@"
else
DNS_ARGS=$(exec_remote dns-args "$@")
@@ -712,7 +712,7 @@ case "$COMMAND" in
collect_cidr_args "$@"
shift $CIDR_COUNT
CONTAINER=$(docker run $DNS_ARGS -d "$@")
if [ "$LOCAL" = "--local" ]; then
if [ -n "$LOCAL" ]; then
create_bridge
with_container_netns $CONTAINER attach $CIDR_ARGS >/dev/null
tell_dns PUT $CONTAINER $CIDR_ARGS