mirror of
https://github.com/BBaoVanC/bbaovanc.com.git
synced 2025-09-09 14:07:34 -05:00
Run Lighthouse for all changed pages (#26)
This commit is contained in:
8
changed-urls.sh
Executable file
8
changed-urls.sh
Executable 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}/"
|
Reference in New Issue
Block a user