Commit 583fbe3
authored
fix(hooks): incorrect found count/skipped output in mixed exec/non-exec batches (#2551)
* fix(hooks): incorrect skipped output in mixed exec/non-exec batches
The `found` variable is incorrectly decremented for non-executable scripts, which leads to misleading output when a hook folder contains an executable + a non-executable script (output will indicate the folder was fully scripted).
Signed-off-by: Josh <josh.t.richards@gmail.com>
* chore(hooks): make skipped/completed logic more intuitive
Signed-off-by: Josh <josh.t.richards@gmail.com>
---------
Signed-off-by: Josh <josh.t.richards@gmail.com>1 parent a5577bc commit 583fbe3
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
53 | | - | |
| 51 | + | |
| 52 | + | |
54 | 53 | | |
55 | | - | |
| 54 | + | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
0 commit comments