Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit 896d2e1

Browse files
Using find instead of xargs as it fails on readthedocs
Signed-off-by: Prafulla Mahindrakar <prafulla.mahindrakar@gmail.com>
1 parent 213427b commit 896d2e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/post_process_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ do
1313
LINK=$(echo $LINK_TO_FILE_ENTRY | cut -f1 -d"=")
1414
FILE_PATH=$(echo $LINK_TO_FILE_ENTRY | cut -f2 -d"=")
1515
ESCAPED_FILE_PATH=`echo $FILE_PATH|sed 's/\\//\\\\\//g'`
16-
grep -rl "<a href=\"#$LINK\">" --include "*.html" .|xargs sed $SEDOPTION "s/href=\"#$LINK\"/href=\"$ESCAPED_FILE_PATH#$LINK\"/"
16+
find . -name "*.html" -exec sed $SEDOPTION "s/href=\"#$LINK\"/href=\"$ESCAPED_FILE_PATH#$LINK\"/" {} \;
1717
done
1818
echo "Links fixed"

0 commit comments

Comments
 (0)