From dd949d5984aa826d9827d4dde133e33e7a86df64 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 1 Jul 2011 13:14:26 +0200 Subject: [PATCH] explorers for types with clashing names not pushed to target Thorsten Steenbock reported a bug where types with similar names, e.g __first __first_second would interfere when transfering explorers to the target host. Signed-off-by: Steven Armstrong --- bin/cdist-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cdist-config b/bin/cdist-config index f7fb5ac0..88e3068f 100644 --- a/bin/cdist-config +++ b/bin/cdist-config @@ -398,7 +398,7 @@ __cdist_type_has_explorer() __cdist_type_explorer_pushed() { [ -f "${__cdist_out_type_dir}/${__cdist_name_type_explorer_pushed}" ] \ - && grep -q "$1" "${__cdist_out_type_dir}/${__cdist_name_type_explorer_pushed}" + && grep -x -q "$1" "${__cdist_out_type_dir}/${__cdist_name_type_explorer_pushed}" } __cdist_type_explorer_pushed_add()