mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
Fix edge case with no commands
This commit is contained in:
parent
03f01e322e
commit
9b4f787d40
1 changed files with 6 additions and 1 deletions
|
|
@ -661,7 +661,12 @@ class Builds extends Action
|
|||
} else {
|
||||
if ($resource->getCollection() === 'sites') {
|
||||
$listFilesCommand = 'echo "{APPWRITE_DETECTION_SEPARATOR}" && cd /usr/local/build && cd $OPEN_RUNTIMES_OUTPUT_DIRECTORY && find . -name \'node_modules\' -prune -o -type f -print';
|
||||
$command .= '&& ' . $listFilesCommand;
|
||||
|
||||
if (empty($command)) {
|
||||
$command = $listFilesCommand;
|
||||
} else {
|
||||
$command .= ' && ' . $listFilesCommand;
|
||||
}
|
||||
}
|
||||
|
||||
$command = 'tar -zxf /tmp/code.tar.gz -C /mnt/code && helpers/build.sh ' . \trim(\escapeshellarg($command));
|
||||
|
|
|
|||
Loading…
Reference in a new issue