Skip to content

Commit

Permalink
getGoodSpur[64]VM.sh sort for latest VM
Browse files Browse the repository at this point in the history
BinTray sorts the notifications page by the notification timestamp, but
this is not always in the same order as the VM timestamp.  Sort the
output before taking the desired entry.

[ci skip]
  • Loading branch information
akgrant committed Dec 21, 2018
1 parent 7ab324c commit a20975e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion image/getGoodSpur64VM.sh
Expand Up @@ -9,7 +9,7 @@ if [ "$1" = -vm -a -n "$2" -a -x "`which "$2"`" ]; then
shift;shift
else
echo checking for latest 64-bit VM on bintray...
LATESTRELEASE=`curl -s -L "https://bintray.com/opensmalltalk/notifications" | grep 'has released version' | head -1 | sed 's/^.*[0-9]">\([0-9][0-9]*\).*$/\1/'`
LATESTRELEASE=`curl -s -L "https://bintray.com/opensmalltalk/notifications" | grep 'has released version' | sort -r | head -1 | sed 's/^.*[0-9]">\([0-9][0-9]*\).*$/\1/'`
if [ -z "$LATESTRELEASE" ]; then
echo "cannot find latest release on https://bintray.com/opensmalltalk/notifications" 1>&2
echo "If you've built your own VM you can substitute that using the -vm myvm argument to this script." 1>&2
Expand Down
2 changes: 1 addition & 1 deletion image/getGoodSpurVM.sh
Expand Up @@ -9,7 +9,7 @@ if [ "$1" = -vm -a -n "$2" -a -x "`which "$2"`" ]; then
shift;shift
else
echo checking for latest 32-bit VM on bintray...
LATESTRELEASE=`curl -s -L "https://bintray.com/opensmalltalk/notifications" | grep 'has released version' | head -1 | sed 's/^.*[0-9]">\([0-9][0-9]*\).*$/\1/'`
LATESTRELEASE=`curl -s -L "https://bintray.com/opensmalltalk/notifications" | grep 'has released version' | sort -r | head -1 | sed 's/^.*[0-9]">\([0-9][0-9]*\).*$/\1/'`
if [ -z "$LATESTRELEASE" ]; then
echo "cannot find latest release on https://bintray.com/opensmalltalk/notifications" 1>&2
echo "If you've built your own VM you can substitute that using the -vm myvm argument to this script." 1>&2
Expand Down

0 comments on commit a20975e

Please sign in to comment.