Closed Vafa-Andalibi closed 2 years ago
This exit()
was the culprit:
Why should this be here? isn't logging it sufficient?
It makes sense to have Dotbot signal an error to the environment when there is an error.
I'm guessing you are using https://github.com/anishathalye/dotbot/wiki/Tips-and-Tricks#install-profile ? That script uses set -e
, so it bails out on error. If you don't want that behavior, you could modify the script to explicitly ignore the return code from the Dotbot invocation, e.g. with:
- "${cmd[@]}"
+ "${cmd[@]}" || true
Sounds good, thanks!
I'm creating a profile which has multiple configs. When any error is raised in any of the configs, the next config will not run and the execution stops at the end of that config file.
This makes the profile installation process very fragile. How can I continue to the next config file even if an error is raised?
Thanks