mirror of
https://github.com/tonsky/FiraCode.git
synced 2024-10-03 16:17:17 +03:00
Quote variables
parent
2b7b50e96b
commit
3dbe30fed3
@ -34,9 +34,9 @@ With most desktop-oriented distributions, double-clicking each font file in the
|
||||
#!/usr/bin/env bash
|
||||
|
||||
fonts_dir="${HOME}/.local/share/fonts"
|
||||
if [ ! -d ${fonts_dir} ]; then
|
||||
if [ ! -d "${fonts_dir}" ]; then
|
||||
echo "mkdir -p $fonts_dir"
|
||||
mkdir -p ${fonts_dir}
|
||||
mkdir -p "${fonts_dir}"
|
||||
else
|
||||
echo "Found fonts dir $fonts_dir"
|
||||
fi
|
||||
@ -44,9 +44,9 @@ fi
|
||||
for type in Bold Light Medium Regular Retina; 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
|
||||
if [ ! -e "${file_path}" ]; then
|
||||
echo "wget -O $file_path $file_url"
|
||||
wget -O ${file_path} ${file_url}
|
||||
wget -O "${file_path} ${file_url}"
|
||||
else
|
||||
echo "Found existing file $file_path"
|
||||
fi;
|
||||
|
Loading…
Reference in New Issue
Block a user