mirror of
https://github.com/tonsky/FiraCode.git
synced 2024-07-14 16:20:28 +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
|
```bash
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
fonts_dir="~/.local/share/fonts"
|
fonts_dir="${HOME}/.local/share/fonts"
|
||||||
if [ ! -d ${fonts_dir} ]; then
|
if [ ! -d ${fonts_dir} ]; then
|
||||||
echo "mkdir -p $fonts_dir"
|
echo "mkdir -p $fonts_dir"
|
||||||
mkdir -p ${fonts_dir}
|
mkdir -p ${fonts_dir}
|
||||||
@ -31,7 +31,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
for type in Bold Light Medium Regular Retina; do
|
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"
|
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"
|
echo "wget -O $file_path $file_url"
|
||||||
|
Loading…
Reference in New Issue
Block a user