浏览代码

Internal (ckeditor5): Trim the packages returned by ls command.

Since the output has a tailing new line it was resulting with an empty package name being added to the end of the array.
Marek Lewandowski 5 年之前
父节点
当前提交
10fd899fce
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scripts/continuous-integration-script.js

+ 1 - 1
scripts/continuous-integration-script.js

@@ -61,7 +61,7 @@ childProcess.execSync( 'mkdir .nyc_output' );
 
 const packages = childProcess.execSync( 'ls packages -1', {
 	encoding: 'utf8'
-} ).toString().split( '\n' );
+} ).toString().trim().split( '\n' );
 
 for ( const fullPackageName of packages ) {
 	const simplePackageName = fullPackageName.replace( /^ckeditor5?-/, '' );