fix link check script

This commit is contained in:
Christian Schabesberger 2018-12-14 09:57:35 +01:00
parent b76024159c
commit 479eaafe6a
1 changed files with 2 additions and 2 deletions

View File

@ -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")