diff --git a/src/cli/log-widget.ts b/src/cli/log-widget.ts index a18e1e89..9e2de9f5 100644 --- a/src/cli/log-widget.ts +++ b/src/cli/log-widget.ts @@ -43,4 +43,4 @@ let handleLog = line => { } let logPath = getLogFromScriptPath(scriptPath) -await execLog(`tail -f ${logPath}`, handleLog) +await execLog("tail", ["-f", logPath], handleLog) diff --git a/src/cli/tail-log.ts b/src/cli/tail-log.ts index 89c1d871..27dcac8d 100644 --- a/src/cli/tail-log.ts +++ b/src/cli/tail-log.ts @@ -4,4 +4,4 @@ import { getLogFromScriptPath } from "../core/utils.js" let scriptPath = await arg("Script Path") let logPath = getLogFromScriptPath(scriptPath) -await terminal(`tail -f ${logPath}`) +await terminal("tail", ["-f", logPath])