From e4a6efa84b92ab744497ec76d7fbe1bc1449d589 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 24 Feb 2011 21:41:03 +0100 Subject: [PATCH] correctly evaluate Signed-off-by: Nico Schottelius --- bin/cdist-object-explorer-all | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/cdist-object-explorer-all b/bin/cdist-object-explorer-all index 82222943..e341961a 100755 --- a/bin/cdist-object-explorer-all +++ b/bin/cdist-object-explorer-all @@ -50,8 +50,8 @@ done < "$type_listing" # For every type that has explorers, Transfer the explorers i=0 -while [ "$i" -le "$tc" ]; do - eval cur_type=\"type_$i\" +while [ "$i" -lt "$tc" ]; do + eval cur_type=\"\$type_$i\" src_dir="$(__cdist_type_explorer_dir "$cur_type")" dst_dir="$(__cdist_remote_type_explorer_dir "$cur_type")"