Skip to content

Commit

Permalink
Merge branch 'develop' for v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrrobot47 committed Jun 16, 2021
2 parents 30500e3 + f548fb0 commit e87c21c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Shell_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ public function __invoke( $args, $assoc_args ) {
$tty = get_flag_value( $assoc_args, 'skip-tty' ) ? '-T' : '';

if ( $command ) {
EE::exec( "docker-compose exec $tty $user_string $service $shell -c \"$command\"", true, true, [], true );
EE::exec( \EE_DOCKER::docker_compose_with_custom() . " exec $tty $user_string $service $shell -c \"$command\"", true, true, [], true );
} else {
$this->run( "docker-compose exec $user_string $service $shell" );
$this->run( \EE_DOCKER::docker_compose_with_custom() . " exec $user_string $service $shell" );
}
EE\Utils\delem_log( 'ee shell end' );
}
Expand Down Expand Up @@ -146,7 +146,7 @@ private function run( $cmd, $descriptors = null ) {
*/
private function check_shell_available( $shell_container, $site ) {

$launch = EE::launch( 'docker-compose config --services' );
$launch = EE::launch( \EE_DOCKER::docker_compose_with_custom() . ' config --services' );
$services = explode( PHP_EOL, trim( $launch->stdout ) );
if ( in_array( $shell_container, $services, true ) ) {
return;
Expand All @@ -165,7 +165,7 @@ private function check_shell_available( $shell_container, $site ) {
* @return bool Success.
*/
private function check_user_available( $user, $shell_container ) {
$check_command = sprintf( "docker-compose exec --user='%s' %s bash -c 'exit'", $user, $shell_container );
$check_command = sprintf( \EE_DOCKER::docker_compose_with_custom() . " exec --user='%s' %s bash -c 'exit'", $user, $shell_container );

if ( EE::exec( $check_command ) ) {
return true;
Expand Down

0 comments on commit e87c21c

Please sign in to comment.