Merge pull request #1 from marcogll/fix/handle-existing-fonts

Fix: Handle existing fonts in setup script
This commit is contained in:
Marco Gallegos
2025-11-26 12:32:29 -06:00
committed by GitHub

View File

@@ -154,7 +154,16 @@ brew_ensure_cask() {
fi
echo "➜ Instalando ${cask}"
brew install --cask "$cask"
local output
if ! output=$(brew install --cask "$cask" 2>&1); then
if [[ "$output" == *"already a Font at"* ]]; then
echo "✔︎ La fuente de ${cask} ya existe. Omitiendo."
else
echo "$output" >&2
echo "Error al instalar ${cask}." >&2
return 1
fi
fi
}
install_cli_dependencies() {