Skip to content
This repository has been archived by the owner on May 21, 2022. It is now read-only.

Commit

Permalink
give a better error message on missing installer (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
florence authored and Greg Hendershott committed Aug 8, 2017
1 parent d444096 commit 1df1d73
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions install-racket.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,19 @@ else
fi

if [ -n "$TEST" ]; then
printf "%s %-7s %-120s " $RACKET_MINIMAL $RACKET_VERSION $URL
if curl -I -L $URL 2>&1 | grep 404.Not.Found ; then
exit 1
printf "%s %-7s %-120s " $RACKET_MINIMAL $RACKET_VERSION $URL
fi

echo "Checking installer"
if curl -I -L $URL 2>&1 | grep 404.Not.Found ; then
echo "Installer not available"
if [[ "$RACKET_VERSION" = "HEAD" ]]; then
echo "Did the build fail? Check the logs at https://plt.eecs.northwestern.edu/snapshots/current/log/"
fi
exit 1
fi

if [ -n "$TEST" ]; then
echo "GOOD"
exit 0
fi
Expand Down

0 comments on commit 1df1d73

Please sign in to comment.