anishathalye / dotbot

A tool that bootstraps your dotfiles ⚡️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Tips and Tricks -> install-profile

darsh12 opened this issue · comments

Hi,
I have been using an old script of the install-profile, however once I updated the install-profile script, the script broke.

image

The script initially assumes that the dotbot is located in the meta folder. But once we progress in the script, the git submodule commands are looking for the dotbot dir to update.

image

As shown in the image, first we cd to the base directory, and the git submodule is looking for the dotbot directory in the base directory which does not exist because it is in the meta/dotbot dir.

fix

1

git -C "${BASE_DIR}" submodule sync --quiet --recursive
git submodule update --init --recursive "${BASE_DIR}"

2

git -C "${META_DIR}/${DOTBOT_DIR}" submodule sync --quiet --recursive
git submodule update --init --recursive "${META_DIR}/${DOTBOT_DIR}"

Nice catch! Anyone is allowed to modify the wiki. Would you like to make your corrections directly?

Thanks, I just edited the wiki with fix 1.