mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Fix output directory path validation and position
This commit is contained in:
parent
b614045d97
commit
04d6693803
1 changed files with 2 additions and 3 deletions
|
|
@ -692,10 +692,9 @@ class Builds extends Action
|
|||
// Start separation, enter build folder
|
||||
$listFilesCommand .= 'echo "{APPWRITE_DETECTION_SEPARATOR_START}" && cd /usr/local/build';
|
||||
|
||||
$outputDirectory = $deployment->getAttribute('outputDirectory') ?? $resource->getAttribute('outputDirectory');
|
||||
|
||||
// Enter output directory, if set
|
||||
if ($outputDirectory !== null) {
|
||||
$outputDirectory = $deployment->getAttribute('outputDirectory') ?? $resource->getAttribute('outputDirectory');
|
||||
if (!empty($outputDirectory)) {
|
||||
$listFilesCommand .= ' && cd ' . \escapeshellarg($resource->getAttribute('outputDirectory'));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue