Browse Source

Update invalid_site_rechecker.sh

Fixed path to sites.yml, reversed output, and intentionally slowed down the script for more accurate results
pull/968/head
Prehistoric Dog 2 years ago committed by GitHub
parent
commit
58c005bc4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      scripts/invalid_site_rechecker.sh

4
scripts/invalid_site_rechecker.sh

@ -1,5 +1,5 @@
#!/bin/bash
for f in $(awk -F " " '/url:/ {print $2}' _data/sites.yml)
for f in $(awk -F " " '/url:/ {print $2}' ../_data/sites.yml)
do
echo $f" Response code: "$(curl -o /dev/null -sw "%{response_code}" $f) | grep -v '200\|301\|302' &
echo "Response code: "$(curl -o /dev/null -sw "%{response_code}" $f)" "$f| grep -v '200\|301\|302'
done

Loading…
Cancel
Save