OSDN Git Service

manpages: check for ronn executable before doing anything
authorscribu <mail@scribu.net>
Sat, 30 Mar 2013 15:07:01 +0000 (17:07 +0200)
committerscribu <mail@scribu.net>
Sat, 30 Mar 2013 15:11:43 +0000 (17:11 +0200)
php/WP_CLI/InternalAssoc.php

index 6ceae0b..661d282 100644 (file)
@@ -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;