File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -1697,9 +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
+ }
1700
1703
if ( line === previousPrintedLine ) {
1701
1704
return ;
1702
1705
}
1706
+ core . info ( "DEBUG" ) ;
1707
+ core . info ( previousPrintedLine ) ;
1708
+ core . info ( line ) ;
1703
1709
stdout += line ;
1704
1710
if ( printOutputInDebug ) {
1705
1711
utils_1 . splitByEOL ( line ) . map ( s => s . trim ( ) ) . filter ( Boolean ) . forEach ( s => core . debug ( s ) ) ;
@@ -1715,8 +1721,8 @@ class SDKManager {
1715
1721
stderr : outputListener ,
1716
1722
} ,
1717
1723
} ;
1718
- const commandString = `${ this . sdkManagerPath . replace ( "\"" , "" ) } ${ args . join ( " " ) } ` ;
1719
- console . log ( commandString ) ;
1724
+ const commandString = `${ this . sdkManagerPath . replace ( / \\ " / g , " " ) } ${ args . join ( " " ) } ` ;
1725
+ console . log ( `[command] ${ commandString } ` ) ;
1720
1726
const exitCode = await exec . exec ( this . sdkManagerPath , args , options ) ;
1721
1727
if ( exitCode !== 0 ) {
1722
1728
throw new Error ( `'${ commandString } ' has finished with exit code '${ exitCode } '` ) ;
Original file line number Diff line number Diff line change @@ -31,10 +31,17 @@ 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
+ }
34
37
if ( line === previousPrintedLine ) {
35
38
return ;
36
39
}
37
40
41
+ core . info ( "DEBUG" ) ;
42
+ core . info ( previousPrintedLine ) ;
43
+ core . info ( line ) ;
44
+
38
45
stdout += line ;
39
46
if ( printOutputInDebug ) {
40
47
splitByEOL ( line ) . map ( s => s . trim ( ) ) . filter ( Boolean ) . forEach ( s => core . debug ( s ) ) ;
@@ -50,8 +57,8 @@ export class SDKManager {
50
57
stderr : outputListener ,
51
58
} ,
52
59
} ;
53
- const commandString = `${ this . sdkManagerPath . replace ( "\"" , "" ) } ${ args . join ( " " ) } ` ;
54
- console . log ( commandString ) ;
60
+ const commandString = `${ this . sdkManagerPath . replace ( / \\ " / g , " " ) } ${ args . join ( " " ) } ` ;
61
+ console . log ( `[command] ${ commandString } ` ) ;
55
62
const exitCode = await exec . exec ( this . sdkManagerPath , args , options ) ;
56
63
if ( exitCode !== 0 ) {
57
64
throw new Error ( `'${ commandString } ' has finished with exit code '${ exitCode } '` ) ;
You can’t perform that action at this time.
0 commit comments