Decide whether FTL is on any custom branch by looking for "vDev" in the beginning of the version string

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2018-01-05 23:19:02 +01:00
parent 9319a5234c
commit 746df3b63f

View File

@@ -44,12 +44,12 @@ else
/********** Get Pi-hole FTL (not a git repository) **********/
$FTL_branch = $branches[2];
if($FTL_branch !== "master") {
if(substr($versions[2], 0, 4) === "vDev") {
$FTL_current = "vDev";
$FTL_commit = $versions[2];
}
else {
$FTL_current = explode("-",$versions[2])[0];
$FTL_current = $versions[2];
}
// Get data from GitHub