Remove Microsoft Core Fonts installation
This commit is contained in:
1 parent
2528582f8c
commit
8c6b6ebf28
1 file changed
+2
-10
+2
-10
@@ -159,24 +159,16 @@ optimize_dnf() {
|
|||||||
|
|
||||||
install_fonts() {
|
install_fonts() {
|
||||||
log_info "----------------------------------------------------"
|
log_info "----------------------------------------------------"
|
||||||
log_info "Installing Microsoft Core Fonts and Meslo Nerd Font."
|
log_info "Installing Meslo Nerd Font."
|
||||||
log_info "----------------------------------------------------"
|
log_info "----------------------------------------------------"
|
||||||
|
|
||||||
log_info "Updating system and installing prerequisites..."
|
log_info "Updating system and installing prerequisites..."
|
||||||
sudo dnf upgrade --refresh -y
|
sudo dnf upgrade --refresh -y
|
||||||
check_status "System upgrade" "critical"
|
check_status "System upgrade" "critical"
|
||||||
|
|
||||||
sudo dnf install -y curl cabextract xorg-x11-font-utils fontconfig wget unzip
|
sudo dnf install -y curl fontconfig wget unzip
|
||||||
check_status "Prerequisites installation" "critical"
|
check_status "Prerequisites installation" "critical"
|
||||||
|
|
||||||
log_info "Installing Microsoft Core Fonts..."
|
|
||||||
if rpm -q msttcore-fonts-installer > /dev/null 2>&1; then
|
|
||||||
log_warn "Microsoft Core Fonts already installed."
|
|
||||||
else
|
|
||||||
sudo dnf install -y https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
|
|
||||||
check_status "Microsoft Core Fonts installation" "non-critical"
|
|
||||||
fi
|
|
||||||
|
|
||||||
log_info "Installing Meslo Nerd Font..."
|
log_info "Installing Meslo Nerd Font..."
|
||||||
FONT_NAME="MesloLGS Nerd Font Mono"
|
FONT_NAME="MesloLGS Nerd Font Mono"
|
||||||
# Redirect instead of `grep -q` so fc-list isn't killed by SIGPIPE (pipefail)
|
# Redirect instead of `grep -q` so fc-list isn't killed by SIGPIPE (pipefail)
|
||||||
|
|||||||
Reference in new issue
Block a user