This commit is contained in:
Andras Bacsai
2024-01-11 14:25:55 +01:00
parent efa5dd28f1
commit cc1fb83c79
2 changed files with 0 additions and 5 deletions

View File

@@ -109,7 +109,6 @@ class ExecuteContainerCommand extends Component
try {
// Wrap command to prevent escaped execution in the host.
$cmd = 'sh -c "if [ -f ~/.profile ]; then . ~/.profile; fi; ' . str_replace('"', '\"', $this->command) . '"';
ray($cmd);
if (!empty($this->workDir)) {
$exec = "docker exec -w {$this->workDir} {$this->container} {$cmd}";
} else {