diff --git a/src/BuildRunner.php b/src/BuildRunner.php index e9ed74c..f10f56f 100644 --- a/src/BuildRunner.php +++ b/src/BuildRunner.php @@ -537,7 +537,15 @@ YAML; $dest = $mount . '/v0'; shell_exec('mkdir -p ' . escapeshellarg($dest) . ' && cp -a ' . escapeshellarg($src . '/.') . ' ' . escapeshellarg($dest . '/')); if ($channel !== '' && $channel !== 'staging') { - shell_exec('cp -a ' . escapeshellarg($src . '/ota/channel/' . $channel . '.json') . ' ' . escapeshellarg($dest . '/ota/channel/' . $channel . '.json 2>/dev/null')); + $channelJson = $src . '/ota/channel/' . $channel . '.json'; + if (is_file($channelJson)) { + shell_exec( + 'cp -a ' + . escapeshellarg($channelJson) + . ' ' + . escapeshellarg($dest . '/ota/channel/' . $channel . '.json') + ); + } } } }