lib/r10k/util/purgeable.rb in r10k-3.12.1 vs lib/r10k/util/purgeable.rb in r10k-3.13.0

- old
+ new

@@ -97,11 +97,11 @@ !!exclusion_match || !!allowlist_match || !!desired_match end children.flat_map do |child| - if File.directory?(child) && recurse - potentially_purgeable(child, exclusion_globs, allowed_globs, desireds_not_to_recurse_into, recurse) + if File.directory?(child) && !File.symlink?(child) && recurse + potentially_purgeable(child, exclusion_globs, allowed_globs, desireds_not_to_recurse_into, recurse) << child.to_s else child.to_s end end end