File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ cd web-app
28
28
yarn build
29
29
cd ..
30
30
31
- # For Windows build: switch the next 2 lines
32
31
echo " Bundling webapp..."
33
32
if [[ " $OSTYPE " == " msys" ]]; then
34
33
# linux subsystem on windows selected
Original file line number Diff line number Diff line change @@ -11,11 +11,15 @@ const runCommands = async (commands: string[] = []): Promise<void> => {
11
11
title : command ,
12
12
description : 'Running process...' ,
13
13
}
14
+ logger ( `Command: ${ command } ` )
14
15
send ( { type : 'COMMAND_START' , payload : { process : { ...process , status : 'RUNNING' } } } )
15
16
let result : { stdout : string ; stderr : string }
16
17
try {
17
18
result = await exec ( { command } )
18
- logger ( `Command output: ${ JSON . stringify ( result ) } ` )
19
+ if ( result . stderr ) {
20
+ throw new Error ( result . stderr )
21
+ }
22
+ logger ( `Command output: ${ result . stdout } ` )
19
23
} catch ( error : any ) {
20
24
logger ( `Command failed: ${ error . message } ` )
21
25
send ( { type : '' , payload : { process : { ...process , status : 'FAIL' } } } )
You can’t perform that action at this time.
0 commit comments