mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-22 06:58:24 +00:00
fix createDir 的错误
This commit is contained in:
parent
5b3a47aed2
commit
cc6fbc69fa
@ -4,7 +4,7 @@ import fs from 'fs'
|
|||||||
const _path = process.cwd()
|
const _path = process.cwd()
|
||||||
const getRoot = (root = '') => {
|
const getRoot = (root = '') => {
|
||||||
if (root === 'root' || root === 'yunzai') {
|
if (root === 'root' || root === 'yunzai') {
|
||||||
root = _path
|
root = `${_path}/`
|
||||||
} else if (!root) {
|
} else if (!root) {
|
||||||
root = `${_path}/plugins/miao-plugin/`
|
root = `${_path}/plugins/miao-plugin/`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user