diff --git a/core/__cdist_object_list b/core/__cdist_object_list index af209daa..f2785c30 100755 --- a/core/__cdist_object_list +++ b/core/__cdist_object_list @@ -27,10 +27,10 @@ __cdist_object_list() local basedir="$1"; shift # Use subshell to prevent changing cwd in program - ( + ( cd "${basedir}" - find . -name "$__cdist_name_dot_cdist" | \ + find . -name "$__cdist_name_dot_cdist" | \ sed -e 's;^./;;' -e "s;/${__cdist_name_dot_cdist}\$;;" - ) + ) }