Move version.txt to app folder
This commit is contained in:
committed by
GitHub
parent
c6b5f4ac5f
commit
55a3b242bf
@@ -198,8 +198,8 @@ function build_app_version($ref, $commit_hash)
|
||||
|
||||
if ($commit_hash !== '$Format:%H$') {
|
||||
return 'main.'.$commit_hash;
|
||||
} else if (file_exists('/version.txt')) {
|
||||
return rtrim(file_get_contents('/version.txt'));
|
||||
} else if (file_exists(__DIR__ . '/version.txt')) {
|
||||
return rtrim(file_get_contents(__DIR__ . '/version.txt'));
|
||||
}
|
||||
|
||||
return 'main.unknown_revision';
|
||||
|
||||
Reference in New Issue
Block a user