fix link check script
This commit is contained in:
parent
b76024159c
commit
479eaafe6a
|
@ -22,8 +22,8 @@ for filename in os.listdir():
|
||||||
RETURN_VALUE = 1
|
RETURN_VALUE = 1
|
||||||
print(filename + ": Could not find target for" + link)
|
print(filename + ": Could not find target for" + link)
|
||||||
else:
|
else:
|
||||||
if link.startswith("/"):
|
if link.startswith("img/"):
|
||||||
link = BASE_URL + link
|
link = BASE_URL + "/" + link
|
||||||
if not link.startswith("http"):
|
if not link.startswith("http"):
|
||||||
RETURN_VALUE = 1
|
RETURN_VALUE = 1
|
||||||
print(filename + ": " + link + " is not filled out or not http")
|
print(filename + ": " + link + " is not filled out or not http")
|
||||||
|
|
Loading…
Reference in New Issue