mirror of
https://github.com/lazuscripts/githook.git
synced 2024-11-18 03:04:23 +00:00
close #10, logs prettier
This commit is contained in:
parent
8fae031e16
commit
853c905433
@ -48,8 +48,11 @@ run_update = (branch) ->
|
||||
for cmd in *commands
|
||||
code, output = execute unpack cmd
|
||||
insert exit_codes, code
|
||||
insert logs, output
|
||||
failure = true if code != 0
|
||||
insert logs, cmd[1]
|
||||
insert logs, " #{output\gsub "\n", "\n "}"
|
||||
if code != 0
|
||||
failure = true
|
||||
break
|
||||
|
||||
log = concat logs, "\n"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user