Remove branch from previous version.

This commit is contained in:
dlandon
2023-07-24 18:00:21 -05:00
parent 6a23a3d432
commit ab277ce203

View File

@@ -345,9 +345,7 @@ if (file_exists($changes)) {
break;
}
}
$branch = strpos($version,'rc')!==false ? 'Next' : (strpos($version,'beta')!==false ? 'Beta' : 'Stable');
$previous_version = "Previous Version: ".$version." ".$branch;
$previous_version = "Previous Version: ".$version;
file_put_contents("/$diag/unraid-".$unraid['version'].".txt", "\r\n".$previous_version."\r\n", FILE_APPEND);
$upgraded = "Upgraded on: ".date("F d Y", filemtime($changes));