mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #7073 from overleaf/bg-features-epoch
[web] add note to refresh_features.js script GitOrigin-RevId: 5bda96df8a604c0d5b370aa25b0851486401ed7d
This commit is contained in:
parent
b72b2b9b75
commit
a28e0eaab0
1 changed files with 9 additions and 0 deletions
|
@ -134,6 +134,15 @@ const setup = () => {
|
||||||
ASYNC_LIMIT = argv.async ? argv.async : 10
|
ASYNC_LIMIT = argv.async ? argv.async : 10
|
||||||
MONGO_SKIP = argv.skip ? argv.skip : 0
|
MONGO_SKIP = argv.skip ? argv.skip : 0
|
||||||
COMMIT = argv.commit !== undefined
|
COMMIT = argv.commit !== undefined
|
||||||
|
const FORCE = argv.force !== undefined
|
||||||
|
if (!FORCE) {
|
||||||
|
console.log(
|
||||||
|
'NOTE: features can be automatically refreshed on login (using `featuresEpoch`)\n' +
|
||||||
|
'Consider incrementing settings.featuresEpoch instead of running this script.\n' +
|
||||||
|
'If you really need to run this script, use refresh_features.js --force.'
|
||||||
|
)
|
||||||
|
process.exit(1)
|
||||||
|
}
|
||||||
if (!COMMIT) {
|
if (!COMMIT) {
|
||||||
console.warn('Doing dry run without --commit')
|
console.warn('Doing dry run without --commit')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue