get-scripts rev 69

palemoon: fix VERSION
author Richard Dunbar <mojo@slitaz.org>
date Fri Jun 16 02:55:30 2017 -0400 (2017-06-16)
parents 6c8b1c145691
children 8e84604f9739
files palemoon
line diff
     1.1 --- a/palemoon	Wed Mar 22 09:00:18 2017 +0100
     1.2 +++ b/palemoon	Fri Jun 16 02:55:30 2017 -0400
     1.3 @@ -6,7 +6,7 @@
     1.4  URL="http://linux.palemoon.org"
     1.5  WGET_URL="$URL$(wget -O - $URL/download/mainline/ | \
     1.6  	 sed '/i686/!d;s|.*href="\([^"]*\).*|\1|;q')"
     1.7 -VERSION="$(echo "$WGET_URL" | sed 's|.*files/\([^/]*\).*|\1|')"
     1.8 +VERSION="$(echo "$WGET_URL" | sed 's|.*-\([0-9\.]*\)\..*|\1|')"
     1.9  TARBALL="$(echo "$WGET_URL" | sed 's|.*/||')"
    1.10  MAINTAINER="al.bobylev@gmail.com"
    1.11  [ "$1" == "--get-version" ] && echo $VERSION && exit