If the source for a link is null, use the basename of the destination with a single leading '.' removed, if present.pull/114/head
parent
b482cbda58
commit
d2e20c77db
@ -0,0 +1,26 @@ |
||||
test_description='link uses destination if source is null' |
||||
. '../test-lib.bash' |
||||
|
||||
test_expect_success 'setup' ' |
||||
echo "apple" > ${DOTFILES}/f && |
||||
echo "grape" > ${DOTFILES}/fd |
||||
' |
||||
|
||||
test_expect_success 'run' ' |
||||
run_dotbot <<EOF |
||||
- link: |
||||
~/f: |
||||
~/.f: |
||||
~/fd: |
||||
force: false |
||||
~/.fd: |
||||
force: false |
||||
EOF |
||||
' |
||||
|
||||
test_expect_success 'test' ' |
||||
grep "apple" ~/f && |
||||
grep "apple" ~/.f && |
||||
grep "grape" ~/fd && |
||||
grep "grape" ~/.fd |
||||
' |
Loading…
Reference in new issue