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