This commit is contained in:
jean-emmanuel 2021-09-29 13:19:07 +02:00
parent 40d2f3a820
commit 99ed31be38

View file

@ -283,7 +283,7 @@ module.exports = {
if (data.backup) {
var newpath, i = 0
while (true) {
for (;;) {
newpath = data.path.replace(/\.json$/, '-backup' + String(i).padStart(3, 0) + '.json')
if (fs.existsSync(newpath)) i++
else {