rails / thor

Thor is a toolkit for building powerful command-line interfaces.
http://whatisthor.com/
MIT License
5.12k stars 553 forks source link

`remove_file` should unlink broken symlinks #720

Closed 2called-chaos closed 3 years ago

2called-chaos commented 4 years ago

The problem is that remove_file only checks if File.exist? which is false if the symlink target does not exist (anymore). In create_link this was already considered.