| 1 |
$ . "$TESTDIR/helper.sh" |
| 2 |
|
| 3 |
Passing a linked file is rejected. |
| 4 |
We need a second path not under what will be $HOME |
| 5 |
|
| 6 |
$ EXTDIR="${CRAMTMP}2" |
| 7 |
> mkdir -p "$EXTDIR" |
| 8 |
> echo 'Content' > "$EXTDIR/example" |
| 9 |
> ln -s "$EXTDIR/example" "$HOME/.example" |
| 10 |
|
| 11 |
$ mkrc .example |
| 12 |
'.example' is a symlink. Cannot process file. |
| 13 |
[1] |
| 14 |
|
| 15 |
$ refute "is a symlink" -h $HOME/.dotfiles/.example |
| 16 |
|
| 17 |
Passing a file in one linked dir is rejected |
| 18 |
|
| 19 |
$ mkdir "$HOME/.config" |
| 20 |
> ln -s "$EXTDIR/" "$HOME/.config/tmpdir" |
| 21 |
|
| 22 |
$ mkrc -v .config/tmpdir/example |
| 23 |
'.config/tmpdir/example' path contains a symlink (tmpdir). Cannot process file. |
| 24 |
[1] |
| 25 |
|
| 26 |
$ refute "is a symlink" -h "$HOME/.dotfiles/config/tmpdir/example" |