anishathalye / dotbot

A tool that bootstraps your dotfiles ⚡️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discrepancy in install-profile/install-standalone scripts on Tips & Tricks page

williamwong opened this issue · comments

On the Tips & Tricks page in the wiki, the newly updated install scripts have the following line to point to the path of the dotbot bin:

cmd=("${BASE_DIR}/${META_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" -c "$configFile")

This works only if you installed the dotbot submodule inside the /meta folder, or if you are starting from @ecarlson94's great dotbot-template repo. However, if you are just following the instructions on the main README, you likely added the dotbot submodule directly to the root of the repo, in which case you'd have to modify the above line to:

cmd=("${BASE_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASE_DIR}" -c "$configFile")

to ensure that the dotbot binaries can be located correctly.

Fwiw, I actually like the idea of having the submodule in the /meta folder, so maybe the best solution here is to make a note of it to ensure that the dotbot submodule is in the right location, with maybe some small instructions on how to relocate a git submodule if necessary?

Thanks for pointing this out, and for suggesting that we include instructions on how to move a git submodule. Do you think these updated instructions are sufficiently descriptive?