File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- if [ ! -d /root/.fonts" ] ; then
2
+ if [ ! -d " /root/.fonts" ] ; then
3
3
mkdir /root/.fonts
4
4
echo -e " create ~/.fonts/ \n"
5
5
fi
6
6
7
7
# Download
8
8
9
9
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 "
11
11
12
12
unzip SourceHanSansHWSC.zip
13
13
14
14
# 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
17
17
18
18
sudo fc-cache -fv
19
19
You can’t perform that action at this time.
0 commit comments