mirror of
https://github.com/tonsky/FiraCode.git
synced 2024-10-04 00:31:49 +03:00
Replace ~ with ${HOME}
parent
7989244739
commit
7a2f18f5a8
@ -22,7 +22,7 @@ With most desktop-oriented distributions, double-clicking each font file in the
|
||||
```bash
|
||||
#!/bin/bash
|
||||
|
||||
fonts_dir="~/.local/share/fonts"
|
||||
fonts_dir="${HOME}/.local/share/fonts"
|
||||
if [ ! -d ${fonts_dir} ]; then
|
||||
echo "mkdir -p $fonts_dir"
|
||||
mkdir -p ${fonts_dir}
|
||||
@ -31,7 +31,7 @@ else
|
||||
fi
|
||||
|
||||
for type in Bold Light Medium Regular Retina; do
|
||||
file_path="~/.local/share/fonts/FiraCode-${type}.ttf"
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user