Browse files

Properly delete .examples file so the ex/ directory can be deleted.

  • Loading branch information...
1 parent 81f09e9 commit 271bdcdc0bae07aadf5211fc92baf9a0e12cbb1c tim committed Jul 19, 2003
Showing with 1 addition and 1 deletion.
  1. +1 −1 uninstall.rb
View
2 uninstall.rb
@@ -21,10 +21,10 @@ def rmdir(dir)
end
if File.file? dir+'/.rmagick' then
targets = Dir[dir+'/*']
+ targets += Dir[dir+'/.*'].delete_if { |f| FileTest.directory?(f) }
if not targets.empty?
File.safe_unlink(*targets)
end
- File.safe_unlink(dir+'/.rmagick')
Dir.safe_unlink(dir)
end
end

0 comments on commit 271bdcd

Please sign in to comment.