From d79ef0cbbd537571575ac387f836e45ed3689e73 Mon Sep 17 00:00:00 2001 From: Joe Prochazka Date: Sun, 27 Dec 2015 00:52:38 -0500 Subject: [PATCH] Created PiAware current version variable. --- bash/feeders/piaware.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bash/feeders/piaware.sh b/bash/feeders/piaware.sh index 7e6f872..d276989 100755 --- a/bash/feeders/piaware.sh +++ b/bash/feeders/piaware.sh @@ -31,6 +31,9 @@ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # +# Set to the most current stable version of PiAware available. +CURRENTVERSION="2.1-5" + BUILDDIR=${PWD} ## FUNCTIONS @@ -123,7 +126,7 @@ else echo -e "\033[37m" git clone https://github.com/flightaware/piaware_builder.git cd $BUILDDIR/piaware_builder - git checkout tags/v2.1-5 + git checkout tags/v${CURRENTVERSION} fi ## BUILD THE PIAWARE PACKAGE @@ -140,7 +143,7 @@ dpkg-buildpackage -b echo -e "\033[33m" echo "Installing the PiAware package..." echo -e "\033[37m" -sudo dpkg -i $BUILDDIR/piaware_builder/piaware_2.1-5_*.deb +sudo dpkg -i $BUILDDIR/piaware_builder/piaware_${CURRENTVERSION}_*.deb ## CHECK THAT THE PACKAGE INSTALLED