shenshihai 2 жил өмнө
parent
commit
e82f30c7f7
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      src/PackageClass.php

+ 2 - 0
src/PackageClass.php

@@ -374,6 +374,7 @@ class PackageClass
 			}
 			if(!$fileInfo['override'] && file_exists($targetPath)){
 				logInfo($repoName,"skip copy config file",$targetPath);
+				continue;
 			}
 			$targetPath = pathJoin($configDir,$targetName);
 			if(! fileCopy($filePath,$targetPath) ){
@@ -404,6 +405,7 @@ class PackageClass
 			}
 			if(!$fileInfo['override'] && file_exists($targetPath)){
 				logInfo("skip copy file, file already exists",$targetPath);
+				continue;
 			}
 			if( filedirCopy($filePath,$targetPath) ){
 				logInfo("succeeded to copy file",$fileName," -> ",$targetName);