Skip to content

Commit 8a51626

Browse files
committed
Reflow test. Change writing tmp_err_log to append.
1 parent 8f70d9b commit 8a51626

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

exports/taskfiles/utils/checksum.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ tasks:
1010
#
1111
# @param {string} CHECKSUM_FILE
1212
# @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.
1515
# @param {string} [IGNORE_ERROR="false"] If set to "true", the task will not fail on error.
1616
compute:
1717
internal: true
@@ -57,7 +57,7 @@ tasks:
5757
{{- range .INCLUDE_PATTERNS}}
5858
{{.}} \
5959
{{- end}}
60-
2> "{{.TMP_ERR_LOG}}" \
60+
2>> "{{.TMP_ERR_LOG}}" \
6161
| md5sum > "{{.CHECKSUM_FILE}}" \
6262
; then
6363
rm -f "{{.CHECKSUM_FILE}}"
@@ -75,8 +75,8 @@ tasks:
7575
#
7676
# @param {string} CHECKSUM_FILE
7777
# @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.
8080
# @param {string} [FAIL_ON_ERROR="false"] If set to "true", the task fails when checksums
8181
# mismatch.
8282
validate:
@@ -118,7 +118,7 @@ tasks:
118118
cmp -s "{{.TMP_CHECKSUM_FILE}}" "{{.CHECKSUM_FILE}}" \
119119
|| (
120120
echo "cmp failed for '{{.TMP_CHECKSUM_FILE}}' '{{.CHECKSUM_FILE}}'" \
121-
> "{{.TMP_ERR_LOG}}"
121+
>> "{{.TMP_ERR_LOG}}"
122122
exit 1
123123
)
124124
)

0 commit comments

Comments
 (0)