From 525870cc58fdb92b37df4f92f2fb45fec1d9d3e5 Mon Sep 17 00:00:00 2001 From: kksubbu Date: Thu, 18 Jun 2020 16:52:30 +0530 Subject: [PATCH] update url to always use current stable release --- image/getlatesttrunkimage.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/image/getlatesttrunkimage.sh b/image/getlatesttrunkimage.sh index 425797c03b..5fd181ba2d 100755 --- a/image/getlatesttrunkimage.sh +++ b/image/getlatesttrunkimage.sh @@ -1,10 +1,10 @@ #!/bin/bash . ./envvars.sh -# curl clags -s silent -o output to -URL=http://files.squeak.org/5.2/ -LATEST=`curl -s $URL | tr "=" "\\012" | grep Squeak5.2.*32bit | tail -1 | sed 's/"\(.*\)\/">.*$/\1/'` -echo curl -o $LATEST.zip $URL/$LATEST/$LATEST.zip -curl -o $LATEST.zip $URL/$LATEST/$LATEST.zip +# curl flags -s silent -L follow redirects -o output +URL=http://files.squeak.org/current_stable +LATEST=`curl -s -L $URL | tr "=" "\\012" | grep 'Squeak.*-32bit' | tail -1 | sed 's/"\(.*\)\/">.*$/\1/'` +echo curl -L -o $LATEST.zip $URL/$LATEST/$LATEST.zip +curl -L -o $LATEST.zip $URL/$LATEST/$LATEST.zip unzip $LATEST.zip mv $LATEST.image $BASE.image mv $LATEST.changes $BASE.changes