Skip to content

Commit

Permalink
fix: mirror name splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
Fenopy committed May 30, 2024
1 parent 6ff7079 commit e911e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ async function parseRcloneSections(newCfg = false) {
return console.error('rclone config is empty', global.currentConfiguration.rcloneConf, out);
}

const sections = out.split('\n');
const sections = out.split('\n').map(section => section.replace(/:$/, ''));
if (sections.length) sections.pop();
if (!sections.length) {
return console.error('rclone config sections not found', global.currentConfiguration.rcloneConf, { out, sections });
Expand Down

0 comments on commit e911e0a

Please sign in to comment.