mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-04 15:57:31 +00:00
Only start repl if standard input is a terminal
This commit is contained in:
parent
1b7269fae7
commit
f4969f86db
@ -41,5 +41,8 @@ subdirs("pug", async (err, dirs) => {
|
||||
Object.assign(passthrough, pinski.getExports())
|
||||
|
||||
console.log("Server started")
|
||||
require("./repl")
|
||||
|
||||
if (process.stdin.isTTY || process.argv.includes("--enable-repl")) {
|
||||
require("./repl")
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user