File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 55
55
redirect='${prefix}/${version}'"$old"'/ -> ${base}/${version}'"$new"'/'
56
56
57
57
# if redirect not already in file, add to string to add to PR description
58
- if ! grep -qx "$redirect" $REDIRECTS_FILE; then
58
+ if ! grep -q "$redirect" $REDIRECTS_FILE; then
59
59
renamed_redirects+="<li>[<v>-*]: $redirect</li>"
60
60
fi
61
61
done
85
85
redirect='${prefix}/${version}'"$old"'/ -> ${base}/${version}/'
86
86
87
87
# if redirect not already in file, add to string to add to PR description
88
- if ! grep -qE "${ redirect//\//\\/}$ " $REDIRECTS_FILE; then
88
+ if ! grep -q "$redirect" $REDIRECTS_FILE && [[ "$redirect" != *'${base}/${version}/' ]] ; then
89
89
deleted_redirects+="<li>[<v>-*]: $redirect</li>"
90
90
fi
91
91
done
You can’t perform that action at this time.
0 commit comments