mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: config read error
This commit is contained in:
parent
a1b53c9de7
commit
1d34d7d896
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ if (fs.existsSync(`${_path}/plugins/chatgpt-plugin/config/config.json`)) {
|
|||
}
|
||||
}
|
||||
config = Object.assign({}, defaultConfig, config)
|
||||
const latestTag = execSync('cd plugins/chatgpt-plugin && git describe --tags --abbrev=0').toString().trim()
|
||||
const latestTag = execSync(`cd ${_path}/plugins/chatgpt-plugin && git describe --tags --abbrev=0`).toString().trim()
|
||||
config.version = latestTag
|
||||
|
||||
export const Config = new Proxy(config, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue