From 8fdb22e4e76b8e22a2dfd0dc5d716374f8d9795d Mon Sep 17 00:00:00 2001 From: arakasi72 Date: Wed, 21 Jun 2017 22:33:51 +0100 Subject: [PATCH] Update rtgetscripts --- scripts/rtgetscripts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/rtgetscripts b/scripts/rtgetscripts index 1fd1d1d..bc924aa 100755 --- a/scripts/rtgetscripts +++ b/scripts/rtgetscripts @@ -21,7 +21,13 @@ fi cd /etc/rtinst -branch=$(git symbolic-ref --short HEAD) +branch=$(git symbolic-ref --short HEAD 2>/dev/null) + +if [ -z $branch ]; then + echo "Not in a branch, this is a fixed release" + echo "Run rtsetup to switch to master release" + exit +fi if [ $(git ls-remote --heads https://github.com/arakasi72/rtinst.git $branch | wc -l) -eq 0 ]; then echo "$branch no longer appears to exist"