From 7295fd6057c612dea727270e841e043ba30b9d46 Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Fri, 20 Dec 2024 08:49:13 +0000 Subject: [PATCH] chore: shellcheck --- fonts.bash | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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}"