anishathalye / dotbot

A tool that bootstraps your dotfiles ⚡️
MIT License
7.04k stars 291 forks source link

[BUG] Tips and Tricks -> install-profile #319

Closed darsh12 closed 2 years ago

darsh12 commented 2 years ago

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}"
anishathalye commented 2 years ago

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

darsh12 commented 2 years ago

Thanks, I just edited the wiki with fix 1.