aboutsummaryrefslogtreecommitdiffhomepage
path: root/threadcat-read.sh
diff options
context:
space:
mode:
Diffstat (limited to 'threadcat-read.sh')
-rwxr-xr-xthreadcat-read.sh17
1 files changed, 6 insertions, 11 deletions
diff --git a/threadcat-read.sh b/threadcat-read.sh
index 291cf9e..031ccbe 100755
--- a/threadcat-read.sh
+++ b/threadcat-read.sh
@@ -1,16 +1,11 @@
#!/bin/bash
-CICADAS_USER=$1
-THREAD_NAME=$2
+THREAD_NAME=$1
-if [ ! -z "${CICADAS_USER}" ]; then
- if [ ! -z "${THREAD_NAME}" ]; then
- ssh $CICADAS_USER@cicadas.surf "cat /opt/threadcat/$THREAD_NAME"
- else
- echo You did not provide a thread name.
- echo USAGE: "cat <YOURMESSAGE> | threadcat-write USER THREAD_NAME"
- fi
+if [ ! -z "${THREAD_NAME}" ]; then
+ ssh $CICADAS_USER@cicadas.surf "cat /opt/threadcat/$THREAD_NAME"
else
- echo You did not provide a user name.
- echo USAGE: cat "<YOURMESSAGE> | threadcat-write USER THREAD_NAME"
+ echo You did not provide a thread name.
+ echo USAGE: "threadcat read THREAD_NAME"
fi
+