strona-czynna/test-until-fail.sh

10 lines
230 B
Bash
Executable File

#!/usr/bin/env bash
cd webhint
while true; do
wget localhost:8080/all-components --output-document ./output.html
npx hint --config ../hintrc.local.json ./output.html
if [ "$?" != 0 ]; then
exit 1;
fi;
done