summaryrefslogtreecommitdiff
path: root/test/tests/clean-outside-force.bash
blob: 16a740d1f718675b1b2429766ab1cd29ea954fa8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
test_description='clean forced to remove files linking outside dotfiles directory'
. '../test-lib.bash'

test_expect_success 'setup' '
ln -s /nowhere ~/.g
'

test_expect_success 'run' '
run_dotbot <<EOF
- clean:
    ~/:
      force: true
EOF
'

test_expect_success 'test' '
! test -h ~/.g
'