* [misc] adjust file exists check for repo sync.

This commit is contained in:
caoyanyi
2024-08-29 16:41:16 +08:00
committed by 李阳
parent f057bbe2f8
commit ccb7016b4f
+1 -1
View File
@@ -1362,7 +1362,7 @@ class repoZen extends repo
protected function syncLocalCommit(object $repo): string
{
$logFile = realPath($this->app->getTmpRoot() . $this->config->repo->repoSyncLog->logFilePrefix . strtolower($repo->SCM) . ".{$repo->name}.log");
if($logFile)
if(file_exists($logFile))
{
$content = file($logFile);
foreach($content as $line)