summaryrefslogtreecommitdiff
path: root/test/tests/link-force-overwrite-symlink.bash
blob: e4feedbdca902e4944c8235c2d84aa4f5fd2f3a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
test_description='force overwrites symlinked directory'
. '../test-lib.bash'

test_expect_success 'setup' '
mkdir ${DOTFILES}/dir ~/dir &&
touch ${DOTFILES}/dir/f &&
ln -s ~/ ~/.dir
'

test_expect_success 'run' '
run_dotbot <<EOF
- link:
    ~/.dir:
      path: dir
      force: true
EOF
'

test_expect_success 'test' '
test -f ~/.dir/f
'