From e087797edc34b740a231397bdea2b080fa2d562c Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Mon, 20 Feb 2017 11:49:20 -0800 Subject: [PATCH] Test for format of tag version. Signed-off-by: Dan Schaper --- automated install/basic-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 4fefbc0f..04febe57 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1160,7 +1160,8 @@ FTLinstall() { echo -n "::: Installing FTL ... " latesttag=$(curl -sI https://github.com/pi-hole/FTL/releases/latest | grep "Location" | awk -F '/' '{print $NF}') - if [ ! "${latesttag}" ]; then + # Tags should always start with v, check for that. + if [[ ! "${latesttag}" == v* ]]; then echo "failed (error in getting latest release location from GitHub)" return 1 fi