Tweak output for curl HEAD request check of installer URL

This commit is contained in:
Greg Hendershott 2019-11-25 15:54:35 -05:00
parent 439d472ab0
commit 39b78abdc7

View File

@ -83,11 +83,8 @@ else
exit 1
fi
if [ -n "$TEST" ]; then
printf "%s %-7s %-120s " "$RACKET_MINIMAL" "$RACKET_VERSION" "$URL"
fi
echo "Checking installer"
printf "%-25s" "${MIN}${RACKET_VERSION}${RACKET_NATIPKG}${RACKET_CS}"
echo "@ ${URL}"
if curl -I -L "$URL" 2>&1 | grep 404.Not.Found ; then
echo "Installer not available"
if [[ "$RACKET_VERSION" = "HEAD" ]]; then
@ -97,7 +94,6 @@ if curl -I -L "$URL" 2>&1 | grep 404.Not.Found ; then
fi
if [ -n "$TEST" ]; then
echo "GOOD"
exit 0
fi