get-scripts rev 46

bitcoin, litecoin: add --get-version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 29 14:40:00 2015 +0200 (2015-05-29)
parents 5d357cb2f906
children 098249e83144
files bitcoin
line diff
     1.1 --- a/bitcoin	Fri May 29 10:03:43 2015 +0200
     1.2 +++ b/bitcoin	Fri May 29 14:40:00 2015 +0200
     1.3 @@ -20,6 +20,7 @@
     1.4  esac
     1.5  TARBALL="$(basename $WGET_URL)"
     1.6  VERSION="$(echo $TARBALL | sed 's/.*coin-\(.*\)-linux.*tar.*/\1/')"
     1.7 +[ "$1" == "--get-version" ] && echo $VERSION && exit
     1.8  wget --no-check-certificate -O $TARBALL "$WGET_URL"
     1.9  
    1.10  [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting."