diff --git a/migrations/1753908454.sh b/migrations/1753908454.sh index fdbde67f..d2551b89 100644 --- a/migrations/1753908454.sh +++ b/migrations/1753908454.sh @@ -1,12 +1,14 @@ echo "Migrate from manually downloaded fonts to font packages" -if ! yay -Q ttf-cascadia-mono-nerd &>/dev/null; then - yay -S --noconfirm ttf-cascadia-mono-nerd +if ! pacman -Q ttf-cascadia-mono-nerd &>/dev/null; then + sudo pacman -S --noconfirm ttf-cascadia-mono-nerd rm -rf ~/.local/share/fonts/Caskaydia* fc-cache fi -if ! yay -Q ttf-ia-writer &>/dev/null; then - yay -S --noconfirm ttf-ia-writer - rm -rf ~/.local/share/fonts/iAWriterMonoS* - fc-cache +if omarchy-aur-accessible; then + if ! yay -Q ttf-ia-writer &>/dev/null; then + yay -S --noconfirm ttf-ia-writer + rm -rf ~/.local/share/fonts/iAWriterMonoS* + fc-cache + fi fi