mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-21 22:58:24 +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() {
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user