Run Lighthouse for all changed pages (#26)

This commit is contained in:
2022-05-09 17:27:34 -05:00
committed by GitHub
parent 8a330b59b0
commit 2ce66a14d4
3 changed files with 70 additions and 30 deletions

8
changed-urls.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
diff -qrN old/ new/ |
grep -oP '(?<=\s)new\/\S*' |
xargs -d '\n' ls -1d 2>/dev/null |
grep 'index.html$' |
sed 's/index.html$//' |
sed "s/^new/${SCHEME:=http}:\/\/${DOMAIN:=example.com}/"