mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-25 09:27:43 +00:00
Fix resource getting
This commit is contained in:
parent
60569bf0b1
commit
f2cdab068a
@ -135,7 +135,10 @@ async function downloadGC(branch) {
|
|||||||
|
|
||||||
async function downloadResources() {
|
async function downloadResources() {
|
||||||
const config = await getCfg()
|
const config = await getCfg()
|
||||||
const serverFolderFixed = config.serverFolder.match(/.*\\|.*\//g, '')[0].replace(/\//g, '\\')
|
let serverFolderFixed = config.serverFolder.match(/.*\\|.*\//g, '')[0].replace(/\//g, '\\')
|
||||||
|
|
||||||
|
// Remove trailing slash, it's important here
|
||||||
|
serverFolderFixed = serverFolderFixed.endsWith('\\') ? serverFolderFixed.slice(0, -1) : serverFolderFixed
|
||||||
|
|
||||||
debug.log('Server folder fixed: ' + serverFolderFixed)
|
debug.log('Server folder fixed: ' + serverFolderFixed)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user