makedeb
Icon font with 222 weather themed icons
Click here to go back to the commit logs for ttf-weather-icons-bin.
Hash: 560bea47299a0177fa19296746c38d4d982a2d53
Message: fixed install script
diff --git a/ttf-weather-icons-bin.install b/ttf-weather-icons-bin.install
index 4f5212e..f386cfa 100644
--- a/ttf-weather-icons-bin.install
+++ b/ttf-weather-icons-bin.install
@@ -7,14 +7,17 @@ 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 $*