1
0
Fork 0

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.
This commit is contained in:
Rain 2026-06-23 17:54:27 -04:00
parent a4434a1f01
commit 620eb0c633

View file

@ -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" \ curl -fsSL "https://github.com/subframe7536/Maple-font/releases/latest/download/MapleMono-NF.zip" \
-o "$TMPFONT/MapleMono-NF.zip" -o "$TMPFONT/MapleMono-NF.zip"
mkdir -p "$USER_HOME/.local/share/fonts" 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 fc-cache -fv >/dev/null 2>&1
rm -rf "$TMPFONT" rm -rf "$TMPFONT"
else else