From 33abc28f936261e681a6d8af666728ac7a170fdd Mon Sep 17 00:00:00 2001 From: Nikita Prokopov Date: Wed, 18 Aug 2021 16:01:32 +0200 Subject: [PATCH] Download from Releases, not master --- Linux-instructions.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Linux-instructions.md b/Linux-instructions.md index 3581aab..2082e49 100644 --- a/Linux-instructions.md +++ b/Linux-instructions.md @@ -57,16 +57,11 @@ else echo "Found fonts dir $fonts_dir" fi -for type in Bold Light Medium Regular Retina SemiBold; do - file_path="${HOME}/.local/share/fonts/FiraCode-${type}.ttf" - file_url="https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-${type}.ttf?raw=true" - if [ ! -e "${file_path}" ]; then - echo "wget -O $file_path $file_url" - wget -O "${file_path}" "${file_url}" - else - echo "Found existing file $file_path" - fi; -done +version=5.2 +zip=$Fira_Code_v${version}.zip +curl --fail --location --show-error https://github.com/tonsky/FiraCode/releases/download/${version}/${zip} --output ${zip} +unzip -o -q -d ${fonts_dir} ${zip} +rm ${zip} echo "fc-cache -f" fc-cache -f