From 75bbd4b155698f4e2567560799bd06f6710dcc20 Mon Sep 17 00:00:00 2001 From: kota65535 Date: Wed, 21 Dec 2016 18:43:23 +0900 Subject: [PATCH] Fix regex of ansible completion --- src/_ansible | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_ansible b/src/_ansible index a62f968..60864d4 100644 --- a/src/_ansible +++ b/src/_ansible @@ -92,7 +92,7 @@ __host_list () local -a mixed_host_list mixed_host_list=$(command \ cat ${HOST_FILE} \ - | awk 'NF && $1 !~ /^[:space:]*#|[\[:=]/ { print $1 }' \ + | awk 'NF && $1 !~ /^[[:space:]]*#|[\[:=]/ { print $1 }' \ | sort | uniq) # compute set difference h1 - h2