mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Test for format of tag version.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
5e6f8489a9
commit
e087797edc
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue