make assignment of URL consistent

This commit is contained in:
Phil Clifford 2022-02-28 01:41:32 +00:00
parent 918d8cab1d
commit 076289c529

View File

@ -178,14 +178,13 @@ function check_links() {
else
if [[ $(type -t "editions_${FUNC}") == function ]]; then
for EDITY in $("editions_${FUNC}"); do
URL=$(get_"${FUNC}" | cut -d " " -f1)
URL=$(get_"${OSORUBUNTU}" | cut -d " " -f1)
CHECK=$(curl -o /dev/null --silent --head -L --write-out '%{http_code}\t%{content_type}' "${URL}")
if [[ -n "${ZCHECK}" ]] ; then
ZCHECK=$(curl -o /dev/null --silent --head -L --write-out '%{http_code}\t%{content_type}' "${URL}.zsync")
echo "$FUNC $RELEASE $EDITY ${ZCHECK} ${URL}.zsync"
fi
echo "$FUNC $RELEASE $EDITY ${CHECK} $URL"
done
else
URL=$(get_"${OSORUBUNTU}" | cut -d " " -f1)