function drush_program_exists

8.0.x filesystem.inc drush_program_exists($program)
master filesystem.inc drush_program_exists($program)

Related topics

File

includes/filesystem.inc, line 399
Filesystem utilities.

Code

function drush_program_exists($program) {
  $bucket = drush_bit_bucket();
  return drush_op_system("command -v $program >$bucket 2>&1") === 0 ? TRUE : FALSE;
}