aboutsummaryrefslogtreecommitdiffhomepage
path: root/threadcat-read.sh
diff options
context:
space:
mode:
Diffstat (limited to 'threadcat-read.sh')
-rwxr-xr-xthreadcat-read.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/threadcat-read.sh b/threadcat-read.sh
index 424dc55..9d6012b 100755
--- a/threadcat-read.sh
+++ b/threadcat-read.sh
@@ -10,7 +10,14 @@ else
fi
if [ ! -z "${THREAD_NAME}" ]; then
- ssh $THREADCAT_USER "cat /opt/threadcat/$THREAD_NAME"
+ readarray -t lines < <(ssh $THREADCAT_USER "cat /opt/threadcat/$THREAD_NAME")
+ for line in "${lines[@]}"; do
+ if [[ $line =~ ^=== ]]; then
+ echo -e "\e[0;36m$line\e[0m"
+ else
+ echo $line;
+ fi
+ done
else
echo You did not provide a thread name.
echo USAGE: "threadcat read [BOARD] THREAD"