diff --git a/src/Command/Remote/SshCommand.php b/src/Command/Remote/SshCommand.php index e159a982d..c709517e9 100644 --- a/src/Command/Remote/SshCommand.php +++ b/src/Command/Remote/SshCommand.php @@ -32,7 +32,7 @@ protected function execute(InputInterface $input, OutputInterface $output): ?int ]; $arguments = $input->getArguments(); if (empty($arguments['ssh_command'])) { - $sshCommand[] = 'exec $sHELL -l'; + $sshCommand[] = 'exec $SHELL -l'; } else { $sshCommand[] = implode(' ', $arguments['ssh_command']); diff --git a/tests/phpunit/src/Commands/Remote/SshCommandTest.php b/tests/phpunit/src/Commands/Remote/SshCommandTest.php index f48ac7cd6..d5c76afbd 100644 --- a/tests/phpunit/src/Commands/Remote/SshCommandTest.php +++ b/tests/phpunit/src/Commands/Remote/SshCommandTest.php @@ -34,7 +34,7 @@ public function testRemoteAliasesDownloadCommand(): void { '-o StrictHostKeyChecking=no', '-o AddressFamily inet', '-o LogLevel=ERROR', - 'cd /var/www/html/devcloud2.dev; exec $sHELL -l', + 'cd /var/www/html/devcloud2.dev; exec $SHELL -l', ]; $localMachineHelper ->execute($sshCommand, Argument::type('callable'), NULL, TRUE, NULL)