MDL-83424 upgradenotes: Correct path to version file

This commit is contained in:
Andrew Nicols
2025-07-17 16:43:18 +07:00
committed by Huong Nguyen
parent ee3368dd88
commit 19094fcc7e
+1 -1
View File
@@ -217,7 +217,7 @@ const getInitialMessageValue = (options) => {
export const getCurrentVersion = async () => {
const versionRegex = new RegExp(/^ *\$release *= *['\"](?<release>[^ \+]+\+?) *\(Build:.*/m);
try {
const versionFile = await readFile('version.php', 'utf8');
const versionFile = await readFile('public/version.php', 'utf8');
const match = versionFile.match(versionRegex);
if (match) {
return match.groups.release;