mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-11 12:10:42 +08:00
.
This commit is contained in:
parent
70f84ce4e6
commit
98f65970d1
2
main.js
2
main.js
@ -30,7 +30,6 @@ if (length>2) {
|
||||
let main = new psyDuck.Main()
|
||||
await main.init(params)
|
||||
} catch (e) {
|
||||
// console.log(e)
|
||||
if (e == 'End') {
|
||||
console.log("End")
|
||||
}
|
||||
@ -60,6 +59,7 @@ if (length>2) {
|
||||
console.log("没有可执行的脚本")
|
||||
}
|
||||
}
|
||||
process.exit()
|
||||
}
|
||||
}
|
||||
})().catch((e) => {
|
||||
|
||||
@ -256,6 +256,7 @@ import {fileURLToPath, pathToFileURL} from 'url';
|
||||
}else{
|
||||
console.log(e)
|
||||
}
|
||||
process.exit()
|
||||
})`
|
||||
fs.writeFile(`${abspath}/${filename}.js`, code, function(err, data) {
|
||||
if (err) {
|
||||
@ -320,7 +321,7 @@ import {fileURLToPath, pathToFileURL} from 'url';
|
||||
}else{
|
||||
console.log(e)
|
||||
}
|
||||
|
||||
process.exit()
|
||||
})`
|
||||
fs.writeFile(`${abspath}/${script}`, code, function(err, data) {
|
||||
if (err) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user