From 620eb0c63346bc2f4bd4b52542ea5fed95616550 Mon Sep 17 00:00:00 2001 From: rain Date: Tue, 23 Jun 2026 17:54:27 -0400 Subject: [PATCH] Gentoo font unzip: add -o flag to overwrite without prompting The universal arch/debian script extracts to $USER_HOME/.local/share/ fonts/maple-mono-nf/ (a subdir, no conflicts). The gentoo script extracts directly to $USER_HOME/.local/share/fonts/ which already contains existing fonts. 'unzip' prompts on overwrite in interactive mode; in a non-interactive chezmoi apply this stalls forever with EOF/timeout. Adding -o flag makes it overwrite without prompting. Caught during tadbit onboarding: extracted font dir had MapleMono-NF-ExtraBoldItalic.ttf already (from a previous run); the unzip prompted, hit EOF, and the script exited 1. --- run_once_20-install-user-packages-gentoo.sh.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_once_20-install-user-packages-gentoo.sh.tmpl b/run_once_20-install-user-packages-gentoo.sh.tmpl index a40b3f7..2c37ada 100644 --- a/run_once_20-install-user-packages-gentoo.sh.tmpl +++ b/run_once_20-install-user-packages-gentoo.sh.tmpl @@ -250,7 +250,7 @@ if ! fc-list | grep -qi "Maple Mono NF"; then curl -fsSL "https://github.com/subframe7536/Maple-font/releases/latest/download/MapleMono-NF.zip" \ -o "$TMPFONT/MapleMono-NF.zip" mkdir -p "$USER_HOME/.local/share/fonts" - unzip -q "$TMPFONT/MapleMono-NF.zip" -d "$USER_HOME/.local/share/fonts" + unzip -qo "$TMPFONT/MapleMono-NF.zip" -d "$USER_HOME/.local/share/fonts" fc-cache -fv >/dev/null 2>&1 rm -rf "$TMPFONT" else