Keg#unlink: prune directory for dry_run as well

This commit is contained in:
Xu Cheng 2015-09-06 15:31:09 +08:00
parent eff3d21350
commit 9581ab64e3

View File

@ -203,6 +203,7 @@ class Keg
if dst.symlink? && src == dst.resolved_path if dst.symlink? && src == dst.resolved_path
if mode.dry_run if mode.dry_run
puts dst puts dst
Find.prune if src.directory?
next next
end end