File tree Expand file tree Collapse file tree 2 files changed +15
-26
lines changed Expand file tree Collapse file tree 2 files changed +15
-26
lines changed Original file line number Diff line number Diff line change @@ -1697,20 +1697,15 @@ class SDKManager {
1697
1697
let previousPrintedLine = "" ;
1698
1698
const outputListener = ( data ) => {
1699
1699
const line = data . toString ( ) ;
1700
- if ( line . trim ( ) . length === 0 ) {
1701
- return ;
1702
- }
1703
- if ( line === previousPrintedLine ) {
1704
- return ;
1705
- }
1706
- core . info ( "DEBUG" ) ;
1707
- core . info ( previousPrintedLine ) ;
1708
- core . info ( line ) ;
1709
1700
stdout += line ;
1710
1701
if ( printOutputInDebug ) {
1711
- utils_1 . splitByEOL ( line ) . map ( s => s . trim ( ) ) . filter ( Boolean ) . forEach ( s => core . debug ( s ) ) ;
1702
+ utils_1 . splitByEOL ( line ) . map ( s => s . trim ( ) ) . filter ( Boolean ) . forEach ( s => {
1703
+ if ( previousPrintedLine !== s ) {
1704
+ core . debug ( s ) ;
1705
+ previousPrintedLine = s ;
1706
+ }
1707
+ } ) ;
1712
1708
}
1713
- previousPrintedLine = line ;
1714
1709
} ;
1715
1710
const options = {
1716
1711
silent : true ,
@@ -1721,7 +1716,7 @@ class SDKManager {
1721
1716
stderr : outputListener ,
1722
1717
} ,
1723
1718
} ;
1724
- const commandString = `${ this . sdkManagerPath . replace ( / \\ " / g, " " ) } ${ args . join ( " " ) } ` ;
1719
+ const commandString = `${ this . sdkManagerPath . replace ( / " / g, " " ) } ${ args . join ( " " ) } ` ;
1725
1720
console . log ( `[command]${ commandString } ` ) ;
1726
1721
const exitCode = await exec . exec ( this . sdkManagerPath , args , options ) ;
1727
1722
if ( exitCode !== 0 ) {
Original file line number Diff line number Diff line change @@ -31,22 +31,16 @@ export class SDKManager {
31
31
let previousPrintedLine = "" ;
32
32
const outputListener = ( data : Buffer ) : void => {
33
33
const line = data . toString ( ) ;
34
- if ( line . trim ( ) . length === 0 ) {
35
- return ;
36
- }
37
- if ( line === previousPrintedLine ) {
38
- return ;
39
- }
40
-
41
- core . info ( "DEBUG" ) ;
42
- core . info ( previousPrintedLine ) ;
43
- core . info ( line ) ;
44
-
45
34
stdout += line ;
35
+
46
36
if ( printOutputInDebug ) {
47
- splitByEOL ( line ) . map ( s => s . trim ( ) ) . filter ( Boolean ) . forEach ( s => core . debug ( s ) ) ;
37
+ splitByEOL ( line ) . map ( s => s . trim ( ) ) . filter ( Boolean ) . forEach ( s => {
38
+ if ( previousPrintedLine !== s ) {
39
+ core . debug ( s ) ;
40
+ previousPrintedLine = s ;
41
+ }
42
+ } ) ;
48
43
}
49
- previousPrintedLine = line ;
50
44
} ;
51
45
const options : exec . ExecOptions = {
52
46
silent : true ,
@@ -57,7 +51,7 @@ export class SDKManager {
57
51
stderr : outputListener ,
58
52
} ,
59
53
} ;
60
- const commandString = `${ this . sdkManagerPath . replace ( / \\ " / g, " " ) } ${ args . join ( " " ) } ` ;
54
+ const commandString = `${ this . sdkManagerPath . replace ( / " / g, " " ) } ${ args . join ( " " ) } ` ;
61
55
console . log ( `[command]${ commandString } ` ) ;
62
56
const exitCode = await exec . exec ( this . sdkManagerPath , args , options ) ;
63
57
if ( exitCode !== 0 ) {
You can’t perform that action at this time.
0 commit comments