Skip to content

Commit 98e8ec8

Browse files
authored
Merge pull request #6013 from drzraf/wp-custom-binary
allow remote binary customization
2 parents 8b064c7 + 6c736ef commit 98e8ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php/WP_CLI/Runner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ private function run_ssh_command( $connection_string ) {
530530
$env_vars .= 'WP_CLI_STRICT_ARGS_MODE=1 ';
531531
}
532532

533-
$wp_binary = 'wp';
533+
$wp_binary = getenv( 'WP_CLI_SSH_BINARY' ) ?: 'wp';
534534
$wp_args = array_slice( $GLOBALS['argv'], 1 );
535535

536536
if ( $this->alias && ! empty( $wp_args[0] ) && $this->alias === $wp_args[0] ) {

0 commit comments

Comments
 (0)