| 1 |
$ . "$TESTDIR/helper.sh" |
| 2 |
|
| 3 |
Use the first existing dotfiles location |
| 4 |
$HOME/.dotfiles is created at test time |
| 5 |
|
| 6 |
$ touch .example |
| 7 |
|
| 8 |
$ mkrc -d .missing-dotfiles .example >/dev/null |
| 9 |
|
| 10 |
$ assert_linked "$HOME/.example" "$HOME/.dotfiles/example" |
| 11 |
|
| 12 |
Exit when no location found |
| 13 |
|
| 14 |
$ mv .dotfiles .dotfiles-error |
| 15 |
|
| 16 |
$ touch .exampleno |
| 17 |
|
| 18 |
$ mkrc -d .missing-dotfiles .exampleno >/dev/null |
| 19 |
No dotfiles directories found in .missing-dotfiles */.dotfiles (glob) |
| 20 |
[1] |
| 21 |
|
| 22 |
$ refute "should not be a symlink" -h $HOME/.examplenob |
| 23 |
|