chore: shellcheck

This commit is contained in:
Xavier Logerais 2024-12-20 08:49:13 +00:00
parent a8ec6b83e2
commit 7295fd6057

View File

@ -12,10 +12,9 @@ fonts+=("DejaVuSansMono")
test -d "${fontdir}" || mkdir -p "${fontdir}" test -d "${fontdir}" || mkdir -p "${fontdir}"
# Download fonts # Download fonts
for font in "${fonts[@]}" for font in "${fonts[@]}"; do
do wget -q -O "/tmp/${font}.zip" "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/${font}.zip" && cd "${fontdir}" && unzip -u "/tmp/${font}.zip" && rm "/tmp/${font}.zip"
wget -q -O /tmp/${font}.zip "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/${font}.zip" && cd ${fontdir} && unzip -u /tmp/${font}.zip && rm /tmp/${font}.zip
done done
# Refresh cache # Refresh cache
fc-cache --force --verbose ${fontdir} fc-cache --force --verbose "${fontdir}"