public boolean isCommandInstalled ( String command , String failureMessage ) { List < String > output = getProcessManager ( ) . executeAndJoinOutput ( command ) ; return output . size ( ) > 0 && ! output . get ( 0 ) . contains ( failureMessage ) ; }
True if the given command is installed in the shell false otherwise .