Files
mac_vntySet/vanity_setup.sh
google-labs-jules[bot] 972743df41 fix(vanity_setup): Improve script robustness and fix runtime errors
This commit addresses three separate issues identified during the execution of the vanity setup script:

1.  **Handle existing fonts gracefully**: The `brew_ensure_cask` function is modified to catch the specific error that occurs when a font cask is installed but the font file already exists. Instead of failing, the script now reports the font as already present and continues.

2.  **Fix Docker plugin load order**: The `install_zsh_config` function now prepends the `brew shellenv` command to the downloaded `.zshrc` file. This ensures the Homebrew PATH is set *before* Oh My Zsh loads its plugins, resolving the `command not found: docker` error on shell startup.

3.  **Automatically update yt-dlp**: The `brew_ensure_formula` function is updated to automatically run `brew upgrade yt-dlp` if the formula is already installed. This keeps the tool up-to-date and prevents download failures (like HTTP 403 errors) caused by an outdated version.
2025-11-26 18:39:09 +00:00

12 KiB