Skip to content

Commit fa35980

Browse files
committed
chj-fonts.sh 2
1 parent c6ff816 commit fa35980

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

chj-fonts.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#!/bin/bash
2-
if [ ! -d /root/.fonts" ] ; then
2+
if [ ! -d "/root/.fonts" ] ; then
33
mkdir /root/.fonts
44
echo -e "create ~/.fonts/ \n"
55
fi
66

77
# Download
88

99
wget -O SourceHanSansHWSC.zip -nv https://github.com/adobe-fonts/source-han-sans/releases/download/2.004R/SourceHanSansHWSC.zip
10-
echo -e "download finished"
10+
echo -e "download finished\n"
1111

1212
unzip SourceHanSansHWSC.zip
1313

1414
# Copy fonts to font directory
15-
cp -i OTF/SimplifiedChineseHW/SourceHanSansHWSC-Regular.otf /root/.fonts
16-
cp -i OTF/SimplifiedChineseHW/SourceHanSansHWSC-Bold.otf /root/.fonts
15+
cp -f OTF/SimplifiedChineseHW/SourceHanSansHWSC-Regular.otf /root/.fonts
16+
cp -f OTF/SimplifiedChineseHW/SourceHanSansHWSC-Bold.otf /root/.fonts
1717

1818
sudo fc-cache -fv
1919

0 commit comments

Comments
 (0)