diff options
author | Graham Bennett <graham@simulcra.org> | 2015-11-27 11:54:35 +0100 |
---|---|---|
committer | Graham Bennet <mike@mike-burns.com> | 2015-11-27 11:56:57 +0100 |
commit | 7a94e88e57d4721b4ef32275d883a10e280eb277 (patch) | |
tree | bfd54a9a9261ef2f5c3bdeac2c64a23fc908e01f /test | |
parent | 52028b09025c5ebc41fc88bf3d7838416fbbbe54 (diff) |
Symlink identical files if they are not yet linked
Edge case: a file is a copy of a dotfile but is not linked. In this case
we should link it.
Diffstat (limited to 'test')
-rw-r--r-- | test/rcup-symlink-existing.t | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/rcup-symlink-existing.t b/test/rcup-symlink-existing.t new file mode 100644 index 0000000..d311b93 --- /dev/null +++ b/test/rcup-symlink-existing.t @@ -0,0 +1,10 @@ + $ . "$TESTDIR/helper.sh" + +Symlinks files even if they are identical + + $ mkdir -p .dotfiles + > echo find-me > "$HOME/.door" + > echo find-me > .dotfiles/door + + $ rcup + > assert_linked "$HOME/.door" "$HOME/.dotfiles/door" |