diff --git a/fonts.bash b/fonts.bash index 2824631..3fe444e 100644 --- a/fonts.bash +++ b/fonts.bash @@ -12,10 +12,9 @@ fonts+=("DejaVuSansMono") test -d "${fontdir}" || mkdir -p "${fontdir}" # Download fonts -for font in "${fonts[@]}" -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 +for font in "${fonts[@]}"; 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" done # Refresh cache -fc-cache --force --verbose ${fontdir} +fc-cache --force --verbose "${fontdir}"