mirror of
https://github.com/tonsky/FiraCode.git
synced 2024-10-05 17:17:34 +03:00
Download from Releases, not master
parent
7e5384b099
commit
33abc28f93
@ -57,16 +57,11 @@ else
|
|||||||
echo "Found fonts dir $fonts_dir"
|
echo "Found fonts dir $fonts_dir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for type in Bold Light Medium Regular Retina SemiBold; do
|
version=5.2
|
||||||
file_path="${HOME}/.local/share/fonts/FiraCode-${type}.ttf"
|
zip=$Fira_Code_v${version}.zip
|
||||||
file_url="https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-${type}.ttf?raw=true"
|
curl --fail --location --show-error https://github.com/tonsky/FiraCode/releases/download/${version}/${zip} --output ${zip}
|
||||||
if [ ! -e "${file_path}" ]; then
|
unzip -o -q -d ${fonts_dir} ${zip}
|
||||||
echo "wget -O $file_path $file_url"
|
rm ${zip}
|
||||||
wget -O "${file_path}" "${file_url}"
|
|
||||||
else
|
|
||||||
echo "Found existing file $file_path"
|
|
||||||
fi;
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "fc-cache -f"
|
echo "fc-cache -f"
|
||||||
fc-cache -f
|
fc-cache -f
|
||||||
|
Loading…
Reference in New Issue
Block a user