From: scribu Date: Sat, 30 Mar 2013 15:07:01 +0000 (+0200) Subject: manpages: check for ronn executable before doing anything X-Git-Tag: v0.10.0~129 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ff9db7e61b5d78dd8a19659ec6b1aca00e71d0b7;p=wvm%2Fwvm.git manpages: check for ronn executable before doing anything --- diff --git a/php/WP_CLI/InternalAssoc.php b/php/WP_CLI/InternalAssoc.php index 6ceae0b0..661d282f 100644 --- a/php/WP_CLI/InternalAssoc.php +++ b/php/WP_CLI/InternalAssoc.php @@ -57,6 +57,10 @@ class InternalAssoc { } static function man( $args ) { + if ( '' === exec( 'which ronn' ) ) { + WP_CLI::error( '`ronn` executable not found.' ); + } + $arg_copy = $args; $command = WP_CLI::$root;