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