From 40c42c1a4c08b4d672a29411a87f1a21c5319f24 Mon Sep 17 00:00:00 2001 From: Carl Roman Hultay <144816337+crhultay@users.noreply.github.com> Date: Mon, 25 Nov 2024 08:32:16 -0500 Subject: [PATCH 1/2] Create watch.sh --- watch.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 watch.sh diff --git a/watch.sh b/watch.sh new file mode 100644 index 000000000..42a0fda3c --- /dev/null +++ b/watch.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +LOGFILE_PATH=~/enigma-bbs/logs/enigma-bbs.log +BUNYAN_BINARY_PATH=~/enigma-bbs/node_modules/bunyan/bin/bunyan + +tail -F $LOGFILE_PATH | $BUNYAN_BINARY_PATH From b6f162e6d1f968cad2dcab2af3ea64928ee0981f Mon Sep 17 00:00:00 2001 From: Carl Roman Hultay <144816337+crhultay@users.noreply.github.com> Date: Mon, 25 Nov 2024 20:20:18 -0500 Subject: [PATCH 2/2] Update watch.sh --- watch.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/watch.sh b/watch.sh index 42a0fda3c..9b4621a23 100644 --- a/watch.sh +++ b/watch.sh @@ -3,4 +3,6 @@ LOGFILE_PATH=~/enigma-bbs/logs/enigma-bbs.log BUNYAN_BINARY_PATH=~/enigma-bbs/node_modules/bunyan/bin/bunyan +PATH="$HOME/.local/share/mise/shims:$PATH" + tail -F $LOGFILE_PATH | $BUNYAN_BINARY_PATH