fix: load profile on remote commands

This commit is contained in:
Andras Bacsai 2024-01-11 14:13:43 +01:00
parent 1b6546d26c
commit 34febe670d
4 changed files with 5 additions and 5 deletions

View File

@ -108,8 +108,8 @@ class ExecuteContainerCommand extends Component
$this->validate();
try {
// Wrap command to prevent escaped execution in the host.
$cmd = 'sh -c "' . str_replace('"', '\"', $this->command) . '"';
$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 {

View File

@ -7,7 +7,7 @@ return [
// The release version of your application
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
'release' => '4.0.0-beta.187',
'release' => '4.0.0-beta.188',
// When left empty or `null` the Laravel environment will be used
'environment' => config('app.env'),

View File

@ -1,3 +1,3 @@
<?php
return '4.0.0-beta.187';
return '4.0.0-beta.188';

View File

@ -4,7 +4,7 @@
"version": "3.12.36"
},
"v4": {
"version": "4.0.0-beta.187"
"version": "4.0.0-beta.188"
}
}
}