docs: modified docs wget testing to be a little less verbose
This commit is contained in:
parent
daa363aaf3
commit
e2dc9b33ed
|
@ -3,6 +3,7 @@ set -e
|
|||
|
||||
MMVERSION=${1-0.3.35}
|
||||
|
||||
echo Running website in container...
|
||||
WEBSITE_CID=$(docker run \
|
||||
--detach \
|
||||
--rm \
|
||||
|
@ -10,8 +11,9 @@ WEBSITE_CID=$(docker run \
|
|||
--publish "35729:35729" \
|
||||
--volume "$PWD:/website" \
|
||||
hashicorp/middleman-hashicorp:${MMVERSION})
|
||||
echo Website running in container ${WEBSITE_CID}.
|
||||
|
||||
trap 'echo Killing docker website container... && docker kill ${WEBSITE_CID}' EXIT HUP INT QUIT TERM
|
||||
|
||||
echo Checking website for dead links...
|
||||
wget --recursive --delete-after http://localhost:4567
|
||||
echo Checking website for dead links using recursive wget...
|
||||
wget -nv --recursive --level=10 --delete-after http://localhost:4567
|
||||
|
|
Loading…
Reference in New Issue