We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6777cac commit 170dfacCopy full SHA for 170dfac
_tools/linkcheck
@@ -13,7 +13,7 @@ check_urls()
13
{
14
echo "Checking validity of external links..."
15
16
- local URLS+=($(grep 'url:' $EXTERNAL_LINK_FILE | tail -n+1 | awk '{ print $2}'))
+ local URLS+=($(grep 'url:' "$EXTERNAL_LINK_FILE" | tail -n+1 | awk '{ print $2}'))
17
18
if [ ${#URLS[@]} == 0 ]; then
19
echo "No links found in $EXTERNAL_LINK_FILE, please check."
@@ -36,6 +36,7 @@ check_urls()
36
echo "Every link is alive and OK."
37
else
38
echo "$INVALID invalid links found."
39
+ exit 1
40
fi
41
}
42
0 commit comments