Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shorten up long (over 40 characters) commands in the logs
Very long commands clutter the logs too, so shortening them up should also be helpful: - action: run chroot: false command: | echo test1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 echo test2 echo test3 It will print this: 2022/04/15 15:24:49 echo test1 2 3 4 5 6 7 8 9 10 11 12 13 1... | test1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2022/04/15 15:24:49 echo test1 2 3 4 5 6 7 8 9 10 11 12 13 1... | test2 2022/04/15 15:24:49 echo test1 2 3 4 5 6 7 8 9 10 11 12 13 1... | test3 On the other hand, a single-line command written as a multiline string is still a single-line command: - action: run chroot: false command: | echo test1 Should print: 2022/04/15 15:29:27 echo test1 | test1 Signed-off-by: Andrej Shadura <[email protected]>
- Loading branch information