Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkrc -S not working as intended if nested directories #296

Open
dev-uhuru opened this issue Jan 18, 2024 · 1 comment
Open

mkrc -S not working as intended if nested directories #296

dev-uhuru opened this issue Jan 18, 2024 · 1 comment

Comments

@dev-uhuru
Copy link

dev-uhuru commented Jan 18, 2024

Hello,

I did not use rcm in a while as I had a stable setup and I cannot recall whether that was an issue before. I have a structure with my dotfiles under .local/dotfiles and I use quite heavily .local, for instance .local/wallpapers. I wanted to add this folder and I just cannot get it to just symlink the directory with the -S option. This works as intended if directly in $HOME. I tried various combinations of -U, etc. I replicated the issue on OpenBSD and Fedora:

$ mkdir .test
$ touch .test/file
$ mkrc -vS -t test .test
Moving...
'$HOME/.test' -> '$HOME/.local/dotfiles/tag-test/test'
Linking...
'$HOME/.local/dotfiles/tag-test/test' -> '$HOME/.test'
$ ls -l .test
.test -> $HOME/.local/dotfiles/tag-test/test

And

$ mkrc -vS -t test .local/test
Moving...
'$HOME/.local/test' -> '$HOME/.local/dotfiles/tag-test/local/test'
Linking...
'$HOME/.local/dotfiles/tag-test/local/test/file' -> '$HOME/.local/test/file'
$ ls -l .local
test
$ ls -l .local/test
file -> $HOME/.local/dotfiles/tag-test/local/test/file

I really think that this used to work? Maybe I'm mistaken but I certainly have other symlinked folders and I don't recall this issue. Perhaps created thinks by hand

Thanks for a great piece of software!

@dev-uhuru
Copy link
Author

dev-uhuru commented Feb 21, 2024

It seems it's working all good when working with just one folder under the current location. Perhaps I've missed it in the doc. I'll do a few more tests.

Edit: false flag, seems it's actually cause by the presence of absence of a trailing slash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant