mirror of
https://github.com/marcogll/mac_vntySet.git
synced 2026-01-13 21:35:15 +00:00
Merge pull request #1 from marcogll/fix/handle-existing-fonts
Fix: Handle existing fonts in setup script
This commit is contained in:
@@ -154,7 +154,16 @@ brew_ensure_cask() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "➜ Instalando ${cask}…"
|
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() {
|
install_cli_dependencies() {
|
||||||
|
|||||||
Reference in New Issue
Block a user