Refactor some Installer code into ExecutableFinder
[lhc/web/wiklou.git] / maintenance / Maintenance.php
index 7de0ae4..174b973 100644 (file)
@@ -1496,7 +1496,7 @@ abstract class Maintenance {
         * @return string
         */
        private static function readlineEmulation( $prompt ) {
-               $bash = Installer::locateExecutableInDefaultPaths( [ 'bash' ] );
+               $bash = ExecutableFinder::findInDefaultPaths( 'bash' );
                if ( !wfIsWindows() && $bash ) {
                        $retval = false;
                        $encPrompt = wfEscapeShellArg( $prompt );