Skip to content

Commit

Permalink
update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yakumioto committed Feb 9, 2017
1 parent a08a31a commit ded19a1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#!/bin/bash

# git clone https://github.com/yakumioto/YaHei-Consolas-Hybrid-1.12.git
git clone https://github.com/yakumioto/YaHei-Consolas-Hybrid-1.12.git

echo 'Truetype folder Creating...'
echo 'path:/usr/share/fonts/truetype/YaHei\ Consolas\ Hybrid'

# sudo mkdir -p /usr/share/fonts/truetype/YaHei\ Consolas\ Hybrid
mkdir -p /usr/share/fonts/truetype/YaHei\ Consolas\ Hybrid

echo 'Copying font to truetype folder...'

# sudo cp YaHei\ Consolas\ Hybrid\ 1.12.ttf /usr/share/fonts/truetype/YaHei\ Consolas\ Hybrid
cp YaHei\ Consolas\ Hybrid\ 1.12.ttf /usr/share/fonts/truetype/YaHei\ Consolas\ Hybrid

echo 'Modifying font permissions...'

# sudo chmod 644 /usr/share/fonts/truetype/YaHei\ Consolas\ Hybrid/YaHei\ Consolas\ Hybrid\ 1.12.ttf
chmod 644 /usr/share/fonts/truetype/YaHei\ Consolas\ Hybrid/YaHei\ Consolas\ Hybrid\ 1.12.ttf

echo 'installing YaHei Consolas Hybrid font...'

sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
mkfontscale
mkfontdir
fc-cache -fv

echo 'Complete!'

0 comments on commit ded19a1

Please sign in to comment.