makedeb


ttf-migu 20200307-1


Good looking Japanese TrueType font by mixing M+ and IPA.

Click here to go back to the commit logs for ttf-migu.

Commit:


Hash: 1f8af1e6dbf7eb680da67ff508787a5484ed1c65

Message: fixed install script

Diff


diff --git a/ttf-migu.install b/ttf-migu.install
index 4f5212e..14f8058 100644
--- a/ttf-migu.install
+++ b/ttf-migu.install
@@ -7,14 +7,18 @@ post_install() {
 }
 
 post_upgrade() {
-  post_install $1
+  echo -n "Updating font cache... "
+  fc-cache -f > /dev/null
+  mkfontscale /usr/share/fonts/TTF
+  mkfontdir /usr/share/fonts/TTF
+  echo "done."
 }
 
 post_remove() {
   post_install $1
+  echo -n "Updating font cache... "
+  fc-cache -f > /dev/null
+  mkfontscale /usr/share/fonts/TTF
+  mkfontdir /usr/share/fonts/TTF
+  echo "done."
 }
-
-op=$1
-shift
-
-$op $*