1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:20:05 +08:00

Fix fonts downloader (#3648)

close #3428
This commit is contained in:
Wang Shidong 2020-07-19 11:28:51 +08:00 committed by GitHub
parent 1085213bd1
commit bc39677add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -342,7 +342,7 @@ welcome () {
# download_font {{{
download_font () {
url="https://raw.githubusercontent.com/wsdjeg/DotFiles/master/local/share/fonts/$1"
url="https://raw.githubusercontent.com/wsdjeg/DotFiles/7a75a186c6db9ad6f02cafba8d4c7bc78f47304c/local/share/fonts/${1// /%20}"
path="$HOME/.local/share/fonts/$1"
if [[ -f "$path" ]]
then

View File

@ -342,7 +342,7 @@ welcome () {
# download_font {{{
download_font () {
url="https://raw.githubusercontent.com/wsdjeg/DotFiles/master/local/share/fonts/${1// /%20}"
url="https://raw.githubusercontent.com/wsdjeg/DotFiles/7a75a186c6db9ad6f02cafba8d4c7bc78f47304c/local/share/fonts/${1// /%20}"
path="$HOME/.local/share/fonts/$1"
# Clean up after https://github.com/SpaceVim/SpaceVim/issues/2532
if [[ -f "$path" && ! -s "$path" ]]