I'm new to writing bash scripts and I was wondering if I could get someone's advice on a part of the script I'm working on.
Intended purpose of code
 CheckThis checks if a font is installed by using fc-list and grep, if. If the particular font is not installed, offerit offers to install it for the user. This snippet is part of a larger script that installs a particular Conky configuration along with all of its dependencies with minimal effort from the user.
-  I have to create the FONT_INSTALLEDvariable to avoid a "too many arguments" error by placing the code into theifstatement, is there a better practice for handling this?
-  To check if the font is installed, I check if the FONT_INSTALLEDvariable is a nullStringor not, is. Is this considered good practice? I know in languages such as Java aStringis normally checked for length/content since the default value is "".
-  I've seen that placing > /dev/nullafter a command that would normally have output hides the output. This seems slightly 'hacky' as I know commands such aswgethave the-qor--quietoption to hide output. For commands that do not have such an option, what is the preferred method of hiding output?
Edit: I realize that I should not place semi-colons after each line as per the advice on my first question first question. I forgot to make the appropriate changes to this code snippet.
 Here is the code that I am using: