kopia lustrzana https://github.com/c9/core
make exit code logging more robust
rodzic
b1caa2fbf6
commit
92a7b39300
|
@ -1827,9 +1827,11 @@ module.exports = function setup(fsOptions) {
|
|||
}
|
||||
else if (options.command) {
|
||||
args.push(BASH + " -l -c '"
|
||||
+ options.command.replace(/'/g, "'\\''")
|
||||
+ '; printf "\\e[01;30m\\n\\nProcess exited with code: $?\\e[0m\\n"'
|
||||
+ "; sleep 0.1;'");
|
||||
+ (
|
||||
'trap \'printf "\\e[01;30m\\n\\nProcess exited with code: $?\\e[0m\\n"\' EXIT\n'
|
||||
+ options.command
|
||||
).replace(/'/g, "'\\''")
|
||||
+ "'");
|
||||
}
|
||||
|
||||
args.push(
|
||||
|
|
Ładowanie…
Reference in New Issue