stow icon indicating copy to clipboard operation
stow copied to clipboard

Dotfiles doesn't work with adopt

Open Barabas5532 opened this issue 4 years ago • 0 comments

When using --adopt and --dotfiles together, files are not adopted correctly.

Steps to reproduce:

touch .dotfiles-test
mkdir test
cd test
mkdir test
touch test/dot-dotfiles-test
stow -n --adopt --dotfiles -v test

This results in the following print:

MV: .dotfiles-test -> test/test/.dotfiles-test
LINK: .dotfiles-test => test/test/dot-dotfiles-test
WARNING: in simulation mode so not modifying filesystem.

The file is moved to .dotfiles-test and the link is to dot-dotfiles-test. These are two different files, and the result is that the original file is no longer used.

Barabas5532 avatar Feb 14 '21 12:02 Barabas5532