mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-29 18:48:56 +02:00
[Scrutinizer] Fix Major issues
This commit is contained in:
@@ -49,7 +49,7 @@ class Runtime
|
||||
/**
|
||||
* @var string|null The host being deployed to
|
||||
*/
|
||||
protected $workingHost;
|
||||
protected $workingHost = null;
|
||||
|
||||
/**
|
||||
* @var string|null The Release ID
|
||||
@@ -420,7 +420,7 @@ class Runtime
|
||||
}
|
||||
|
||||
$hostPath = rtrim($this->getEnvOption('host_path'), '/');
|
||||
if ($jail && $this->getReleaseId()) {
|
||||
if ($jail && $this->getReleaseId() !== null) {
|
||||
$cmdDelegate = sprintf('cd %s/releases/%s && %s', $hostPath, $this->getReleaseId(), $cmdDelegate);
|
||||
} elseif ($jail) {
|
||||
$cmdDelegate = sprintf('cd %s && %s', $hostPath, $cmdDelegate);
|
||||
|
||||
Reference in New Issue
Block a user