Skip to content

Commit

Permalink
Fix check_site script (#2170)
Browse files Browse the repository at this point in the history
* Fix check_site script

* Remove old
  • Loading branch information
frankfarzan committed Jun 4, 2021
1 parent 6e8d931 commit 4618a59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/check-site.sh
Expand Up @@ -23,8 +23,8 @@ echo "Starting check."
# Convert them to valid URLs
# Check each link for Docsify 404s

# TODO: Renable https://github.com/GoogleContainerTools/kpt/issues/2168
# find . -name README.md -printf "%P\n" | grep -v node_modules | grep -v themes \
# | sed "s/README.md//" | sed "s/^/http:\/\/localhost:3000\//" \
# | xargs -n1 sh -c '! (npx href-checker $0 --bad-content="404 - Not found" --silent --no-off-site -c=15 | grep .) || exit 255'
find . -name README.md -printf "%P\n" | grep -v node_modules | grep -v themes |
sed "s/README.md//" | sed "s/^/http:\/\/localhost:3000\//" |
xargs -n1 sh -c '! (npx href-checker $0 --bad-content="404 - Not found" --silent --no-off-site -c=15 | grep .) || exit 255'

echo "Success."
File renamed without changes.

0 comments on commit 4618a59

Please sign in to comment.