From e911e0ad9b7c759bb2a410656dfe49400d0704d1 Mon Sep 17 00:00:00 2001 From: fenopy Date: Thu, 30 May 2024 12:35:17 -0500 Subject: [PATCH] fix: mirror name splitting --- tools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools.js b/tools.js index 6dc6294..a0f03e4 100644 --- a/tools.js +++ b/tools.js @@ -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 });