TheLocehiliosan / yadm

Yet Another Dotfiles Manager
https://yadm.io/
GNU General Public License v3.0
4.91k stars 176 forks source link

Issue with bootstrap-in-dir and installing fisher #489

Open adamk33n3r opened 1 week ago

adamk33n3r commented 1 week ago

This question is about

Describe your question

Hello, first time setting up yadm and I'm trying to use the bootstrap-in-dir script. I'm running into a weird issue that when running

fish -c "curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher" 

in my .config/yadm/bootstrap.d/fish it causes the main bootstrap files for some reason pass the remaining bootstrap scripts into the fisher install command I think? The output is the following:

Installing fisher
fisher install version 4.4.4
Fetching https://api.github.com/repos/jorgebucaran/fisher/tarball/HEAD
fish: No matches for wildcard '/home/adam/.config/yadm/bootstrap.d/submodules/*'. See `help expand`.
                        command cp -Rf /home/adam/.config/yadm/bootstrap.d/submodules/* /tmp/tmp.2sB7PiZAev
                                       ^
fish: No matches for wildcard '/home/adam/.config/yadm/bootstrap.d/tmux/*'. See `help expand`.
                        command cp -Rf /home/adam/.config/yadm/bootstrap.d/tmux/* /tmp/tmp.jPoFnoiclv
                                       ^
fish: No matches for wildcard '/home/adam/.config/yadm/bootstrap.d/vim/*'. See `help expand`.
                        command cp -Rf /home/adam/.config/yadm/bootstrap.d/vim/* /tmp/tmp.9RPwzFP4Md
                                       ^
Installing jorgebucaran/fisher
           /home/adam/.config/fish/functions/fisher.fish
           /home/adam/.config/fish/completions/fisher.fish
Installing /home/adam/.config/yadm/bootstrap.d/submodules
Installing /home/adam/.config/yadm/bootstrap.d/tmux
Installing /home/adam/.config/yadm/bootstrap.d/vim

and then the bootstrap ends. If I comment out the fish -c line, then the rest of the bootstrap runs fine. I'm guessing this is probably something to do with how the bootstrap script is reading the scripts (because it's not trying to install the fish boostrap script) and perhaps fisher is swallowing them up first? But I'm not well versed in shell scripting to know what's going on. Any advice?