|
10 | 10 | # |
11 | 11 | # @param {string} CHECKSUM_FILE |
12 | 12 | # @param {string[]} INCLUDE_PATTERNS Path wildcard patterns to compute the checksum for. |
13 | | - # @param {string[]} [EXCLUDE_PATTERNS=[]] Path wildcard patterns, relative to any `INCLUDE_PATTERNS`, |
14 | | - # to exclude from the checksum. |
| 13 | + # @param {string[]} [EXCLUDE_PATTERNS=[]] Path wildcard patterns, relative to any |
| 14 | + # `INCLUDE_PATTERNS`, to exclude from the checksum. |
15 | 15 | # @param {string} [IGNORE_ERROR="false"] If set to "true", the task will not fail on error. |
16 | 16 | compute: |
17 | 17 | internal: true |
|
57 | 57 | {{- range .INCLUDE_PATTERNS}} |
58 | 58 | {{.}} \ |
59 | 59 | {{- end}} |
60 | | - 2> "{{.TMP_ERR_LOG}}" \ |
| 60 | + 2>> "{{.TMP_ERR_LOG}}" \ |
61 | 61 | | md5sum > "{{.CHECKSUM_FILE}}" \ |
62 | 62 | ; then |
63 | 63 | rm -f "{{.CHECKSUM_FILE}}" |
|
75 | 75 | # |
76 | 76 | # @param {string} CHECKSUM_FILE |
77 | 77 | # @param {string[]} INCLUDE_PATTERNS Path wildcard patterns to validate the checksum for. |
78 | | - # @param {string[]} [EXCLUDE_PATTERNS=[]] Path wildcard patterns, relative to any `INCLUDE_PATTERNS`, |
79 | | - # to exclude from the checksum. |
| 78 | + # @param {string[]} [EXCLUDE_PATTERNS=[]] Path wildcard patterns, relative to any |
| 79 | + # `INCLUDE_PATTERNS`, to exclude from the checksum. |
80 | 80 | # @param {string} [FAIL_ON_ERROR="false"] If set to "true", the task fails when checksums |
81 | 81 | # mismatch. |
82 | 82 | validate: |
@@ -118,7 +118,7 @@ tasks: |
118 | 118 | cmp -s "{{.TMP_CHECKSUM_FILE}}" "{{.CHECKSUM_FILE}}" \ |
119 | 119 | || ( |
120 | 120 | echo "cmp failed for '{{.TMP_CHECKSUM_FILE}}' '{{.CHECKSUM_FILE}}'" \ |
121 | | - > "{{.TMP_ERR_LOG}}" |
| 121 | + >> "{{.TMP_ERR_LOG}}" |
122 | 122 | exit 1 |
123 | 123 | ) |
124 | 124 | ) |
|
0 commit comments