Browse Source

fix link check script

pull/10/head
Christian Schabesberger 3 years ago
parent
commit
479eaafe6a
  1. 4
      linkcheck.py

4
linkcheck.py

@ -22,8 +22,8 @@ for filename in os.listdir():
RETURN_VALUE = 1
print(filename + ": Could not find target for" + link)
else:
if link.startswith("/"):
link = BASE_URL + link
if link.startswith("img/"):
link = BASE_URL + "/" + link
if not link.startswith("http"):
RETURN_VALUE = 1
print(filename + ": " + link + " is not filled out or not http")

Loading…
Cancel
Save