aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-11-14 09:20:21 +0100
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-11-14 09:20:41 +0100
commita69bcfd26c95ab96f530c3d6aa312d42c16ecd5c (patch)
tree94d7fa3045f27d89d763703ff9045c6dee45c13b
parentc97205f6084d70ae19ce3da39dfb9280df34339f (diff)
downloadlibrb-a69bcfd26c95ab96f530c3d6aa312d42c16ecd5c.tar.gz
librb-a69bcfd26c95ab96f530c3d6aa312d42c16ecd5c.tar.bz2
librb-a69bcfd26c95ab96f530c3d6aa312d42c16ecd5c.zip
gen-download-page: fail when link cannot be verified as working
no_buildbot
-rwxr-xr-xgen-download-page.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/gen-download-page.sh b/gen-download-page.sh
index b75bdf2..bd50237 100755
--- a/gen-download-page.sh
+++ b/gen-download-page.sh
@@ -169,6 +169,7 @@ do
done
exec 1>&6 6>&-
+failed=0
for l in $(lynx -listonly -nonumbers -dump "${out}" | grep "https://distfiles")
do
@@ -178,5 +179,10 @@ do
if [ ${?} -eq 0 ]
then
echo "ok"
+ continue
fi
+
+ failed=1
done
+
+exit ${failed}