diff --git a/getvbit2 b/getvbit2 index 5733d30..ffa0d09 100644 --- a/getvbit2 +++ b/getvbit2 @@ -14,6 +14,9 @@ echo "Installing vbit2" #install vbit2 git clone https://github.com/peterkvt80/vbit2.git ~/vbit2 cd ~/vbit2 +git fetch --tags +latestTag=`curl --silent "https://api.github.com/repos/peterkvt80/vbit2/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")'` +git checkout $latestTag # switch to latest make echo "Installing raspi-teletext" diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..7fa868a --- /dev/null +++ b/update.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +echo Updating to latest stable version of vbit2 +git fetch --tags +latestTag=`curl --silent "https://api.github.com/repos/peterkvt80/vbit2/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")'` +git checkout $latestTag # switch to latest +make