Skip to content

Commit 8dddec7

Browse files
author
Raphaël Droz
committed
allow remote binary customization. Could be /custom/path/wp but sudo -u user /some/wp would also allow running the remote wp under a distinct user
1 parent e214df2 commit 8dddec7

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
@@ -506,7 +506,7 @@ private function run_ssh_command( $connection_string ) {
506506
$env_vars .= 'WP_CLI_STRICT_ARGS_MODE=1 ';
507507
}
508508

509-
$wp_binary = 'wp';
509+
$wp_binary = getenv( 'WP_CLI_BINARY' ) ?: 'wp';
510510
$wp_args = array_slice( $GLOBALS['argv'], 1 );
511511

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

0 commit comments

Comments
 (0)