Skip to content

Commit cbfac05

Browse files
committed
chore: fix bash
1 parent f777dcb commit cbfac05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/fetch.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
9898
# Output Info
9999
echo '## Fetch new bangumi' >> $output
100-
info_diff=$(diff --new-line-format="%L" --old-line-format="" --unchanged-line-format="" "data/bangumi-info.log" "bangumi-info.log")
100+
info_diff=$(diff --new-line-format="%L" --old-line-format="" --unchanged-line-format="" "data/bangumi-info.log" "bangumi-info.log" || true)
101101
echo "$info_diff" | while IFS= read -r line; do
102102
line="${line/Info: /}"
103103
line="${line/fetch /}"
@@ -106,7 +106,7 @@ jobs:
106106
107107
# Output Error
108108
echo '## Error' >> $output
109-
error_diff=$(diff --new-line-format="%L" --old-line-format="" --unchanged-line-format="" "data/bangumi-error.log" "bangumi-error.log")
109+
error_diff=$(diff --new-line-format="%L" --old-line-format="" --unchanged-line-format="" "data/bangumi-error.log" "bangumi-error.log" || true)
110110
echo "$error_diff" | while IFS= read -r line; do
111111
line="${line/Error: /}"
112112
echo "- ${line}" >> $output
@@ -186,7 +186,7 @@ jobs:
186186
187187
# Output Info
188188
echo '## Fetch new bangumi' >> $output
189-
info_diff=$(diff --new-line-format="%L" --old-line-format="" --unchanged-line-format="" "data/tmdb-info.log" "tmdb-info.log")
189+
info_diff=$(diff --new-line-format="%L" --old-line-format="" --unchanged-line-format="" "data/tmdb-info.log" "tmdb-info.log" || true)
190190
echo "$info_diff" | while IFS= read -r line; do
191191
line="${line/Info: /}"
192192
line="${line/fetch /}"
@@ -195,7 +195,7 @@ jobs:
195195
196196
# Output Error
197197
echo '## Error' >> $output
198-
error_diff=$(diff --new-line-format="%L" --old-line-format="" --unchanged-line-format="" "data/tmdb-error.log" "tmdb-error.log")
198+
error_diff=$(diff --new-line-format="%L" --old-line-format="" --unchanged-line-format="" "data/tmdb-error.log" "tmdb-error.log" || true)
199199
echo "$error_diff" | while IFS= read -r line; do
200200
line="${line/Error: /}"
201201
echo "- ${line}" >> $output

0 commit comments

Comments
 (0)