Skip to content

Commit

Permalink
Merge pull request #511 from kksubbu/updstable
Browse files Browse the repository at this point in the history
update url to always use current stable release
  • Loading branch information
eliotmiranda committed Oct 28, 2020
2 parents 75c8e99 + 525870c commit 2d169b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions 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

0 comments on commit 2d169b7

Please sign in to comment.