From 046eab37764854bd29565faac7442ce10cdf826a Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 14 Sep 2023 10:26:48 +0200 Subject: [PATCH] fix: processWithEnv()->run --- bootstrap/helpers/remoteProcess.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/helpers/remoteProcess.php b/bootstrap/helpers/remoteProcess.php index ab1551ed8..e0d2f68db 100644 --- a/bootstrap/helpers/remoteProcess.php +++ b/bootstrap/helpers/remoteProcess.php @@ -54,7 +54,7 @@ function removePrivateKeyFromSshAgent(Server $server) if (data_get($server, 'privateKey.private_key') === null) { throw new \Exception("Server {$server->name} does not have a private key"); } - Process::run("echo '{$server->privateKey->private_key}' | ssh-add -d -"); + processWithEnv()->run("echo '{$server->privateKey->private_key}' | ssh-add -d -"); } function addPrivateKeyToSshAgent(Server $server, bool $onlyRemove = false) { @@ -62,7 +62,7 @@ function addPrivateKeyToSshAgent(Server $server, bool $onlyRemove = false) throw new \Exception("Server {$server->name} does not have a private key"); } // ray('adding key', $server->privateKey->private_key); - Process::run("echo '{$server->privateKey->private_key}' | ssh-add -q -"); + processWithEnv()->run("echo '{$server->privateKey->private_key}' | ssh-add -q -"); } function generateSshCommand(string $server_ip, string $user, string $port, string $command, bool $isMux = true)