mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 23:30:36 +01:00
re: #5467 -- requiring exact filename match sans extension, for a single upgrade to work
This commit is contained in:
@@ -75,7 +75,7 @@ Upgrade.runSingle = function (query, callback) {
|
||||
async.apply(utils.walk, path.join(__dirname, './upgrades')),
|
||||
function (files, next) {
|
||||
next(null, files.filter(function (file) {
|
||||
return file.search(new RegExp(query)) !== -1;
|
||||
return path.basename(file, '.js') === query;
|
||||
}));
|
||||
},
|
||||
], function (err, files) {
|
||||
|
||||
Reference in New Issue
Block a user