dotbot icon indicating copy to clipboard operation
dotbot copied to clipboard

Globbing with single file in source directory fails

Open DivineDominion opened this issue 2 years ago • 1 comments

Running d2f76a2, I found that this from the examples:

link:
    ~/.config/:
        glob: true
        path: config/*

... does not work when you only have one file in the config directory.

Example:

$ cd ~/.dotfiles
$ mkdir config
$ touch config/test.ini
$ ./install
...
Ambiguous action requested.
No wildcard in glob, directory use undefined: ~/.config/ -> ['config/test.ini']
Did you want to link the directory or into it?
...

As soon as you add another file, globbing works.

DivineDominion avatar May 27 '22 20:05 DivineDominion

Duplicate of #282, but yes, it's absolutely time to fix this @anishathalye ... I've expressed my opinion in the other issue. As a side note, this issue (#284) is very similar. People just expect glob to well.. be flexible.

niraami avatar Jul 05 '22 20:07 niraami

Thanks for bumping this. Dupe of #282, now fixed.

anishathalye avatar Jul 09 '23 20:07 anishathalye