20 lines
309 B
Bash
20 lines
309 B
Bash
test_description='relink does not overwrite file'
|
|
. '../test-lib.bash'
|
|
|
|
test_expect_success 'setup' '
|
|
echo "apple" > ${DOTFILES}/f &&
|
|
echo "grape" > ~/.f
|
|
'
|
|
|
|
test_expect_failure 'run' '
|
|
run_dotbot <<EOF
|
|
- link:
|
|
~/.f:
|
|
path: f
|
|
relink: true
|
|
EOF
|
|
'
|
|
|
|
test_expect_success 'test' '
|
|
grep "grape" ~/.f
|
|
'
|