Closed waltfy closed 9 years ago
Options line curl
’s -#
are a matter of preference and shouldn’ be included in this type of instructions (--silent
, however, might be useful). The amount of &&
should also be reduced to a minimum; when you have so many it’s no longer a one-liner, might as well use a script. There’s also no need to save the file, delete it, and stuff like that; places like /tmp
work great for such disposable files. You should also not simply log out a user out of the blue without a lot of warnings and an option to cancel. curl 'http://www.kutilek.de/download/fira-system-fonts.zip' | tar -xf- -C /tmp && mv /tmp/Fira System Fonts/*ttf /Library/Fonts
will work just as well (without the logging out).
@vitorgalvao I see, your suggestions make a lot of sense. With /tmp
so should I just leave the disposable files there?
Thanks a lot.
Yes, the system will figure out when to get rid of them (likely on the next boot up).
Cool. Thanks again!
As the command won’t log you out anymore, you should fix the description.
@rauberdaniel Of course. Thanks. Fixed.
I have added an installer package to install the font into the correct folder and to force a restart.
I'm sure it can be done in a better way, but it's a start.