Skip to content

Commit 8035020

Browse files
committed
fix
1 parent c0690ff commit 8035020

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/add-redirects.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ jobs:
2727
run: |
2828
renamed_redirects=""
2929
for file in $RENAMED_FILES; do
30-
if (grep -s "source/" <<< "$file") &&
31-
(grep -s "\.txt$" <<< "$file"); then
30+
if [[ ! "$file" == *.txt ]]; then
31+
continue
32+
fi
33+
if (! grep -s "includes/" <<< "$file") &&
34+
(! grep -s "images/" <<< "$file") &&
35+
(! grep -s "examples/" <<< "$file"); then
3236
old=$(echo "$file" | cut -d',' -f1)
3337
old="${old#source}"
3438
old="${old%.txt}"

0 commit comments

Comments
 (0)