SyntaxFix
Write A Post
Hire A Developer
Questions
Assuming the terminal app in question is named 'app' (and you expect it to be in your $PATH):
if [[ ! `which app` ]]; then # run code if app not installed else # run code if app is installed fi