Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
files: avoid surprises when linking files
In the unlikely (but possible) event that a directory is created in place of a target file *after* `checkLinkTargets` but *before* `linkGeneration`, currently the link is created *inside* the directory, which is surprising. To avoid this, use `ln -T` and bail if it fails. Also bail if backing up the target fails. Ideally, `checkLinkTargets` and `linkGeneration` should be more tightly coupled.
- Loading branch information