fix: make /tmp/fonts directory before attempting use

This commit is contained in:
xynydev 2024-03-29 13:22:22 +02:00
parent df5aff1e01
commit 3de87f3086

View file

@ -8,6 +8,7 @@ DEST="/usr/share/fonts/nerd-fonts"
echo "Installation of nerd-fonts started"
rm -rf "$DEST"
mkdir -p /tmp/fonts
for FONT in "${FONTS[@]}"; do
mkdir -p "${DEST}/${FONT}"
@ -16,5 +17,6 @@ for FONT in "${FONTS[@]}"; do
curl "${URL}/${FONT}.tar.xz" -L -o "/tmp/fonts/${FONT}.tar.xz"
tar -xf "/tmp/fonts/${FONT}.tar.xz" -C "${DEST}/${FONT}"
done
rm -rf /tmp/fonts
fc-cache -f "${DEST}"