Skip to content

Commit

Permalink
change scripts to install and update the latest release tag rather th…
Browse files Browse the repository at this point in the history
…an the master branch
  • Loading branch information
ZXGuesser committed Sep 22, 2019
1 parent 4095163 commit 7205423
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions getvbit2
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 7 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7205423

Please sign in to comment.