dont track svgs and drop the / from the end of urls so they wont be duplicated
This commit is contained in:
parent
75be84f895
commit
8c4421108b
2 changed files with 2 additions and 1 deletions
|
@ -28,6 +28,7 @@ $arg = $argv;
|
|||
array_shift($arg);
|
||||
|
||||
foreach ($arg as $url) {
|
||||
$url = preg_replace('/\/$/','',$url);
|
||||
$file = file_get_contents($url);
|
||||
if (!$file)
|
||||
continue;
|
||||
|
|
2
urls.sh
2
urls.sh
|
@ -1,3 +1,3 @@
|
|||
wget --spider --force-html -r -l1 -H $@ 2>&1 \
|
||||
| grep '^--' | awk '{ print $3 }' \
|
||||
| grep -v '\.\(css\|js\|png\|gif\|jpg\|txt\|ico\|ttf\)$'
|
||||
| grep -v '\.\(css\|js\|png\|gif\|jpg\|txt\|ico\|ttf\|svg\)$'
|
||||
|
|
Loading…
Reference in a new issue