Any ideas why this does not remove the broken symlink itself?
<delete removeNotFollowedSymlinks="true">
<fileset followsymlinks="false" file="/some/path/to/broken/symlink" />
</delete>
Alternatively I could use the below, but I'd prefer to avoid exec?
<exec executable="rm">
<arg value="-f"/>
<arg value="/some/path/to/broken/symlink" />
</exec>
Found the real way to do it...
<symlink failonerror="false" action="delete" link="/some/path/to/broken/symlink" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With