some websites are now in different directories, or like the fsfe.org website moved into a directory. This adopts the file system changes. Overtakes 94ca7ac783
This commit is contained in:
@@ -259,7 +259,7 @@ for f in $files_all; do
|
||||
# Check absolute links to fsfe.org
|
||||
# ---------------------------------------------------------------------------
|
||||
fileregex="(\.xhtml$|\.xml$)"
|
||||
exclude="^(drm.info|pdfreaders|global|cgi-bin|build|scripts|events)"
|
||||
exclude="^(drm\.info|pdfreaders\.org|global|fsfe\.org\/cgi-bin|build|fsfe\.org\/scripts|fsfe\.org\/events)"
|
||||
if matchfile "${f}" "${fileregex}" "${exclude}"; then
|
||||
if xmllint --xpath "//a/@href" "${f}" 2>/dev/null \
|
||||
| sed -E 's/([^\r\n]) (href=)/\1\n \2/g' \
|
||||
|
||||
Reference in New Issue
Block a user