summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2018-02-22 17:37:11 -0500
committerJune McEnroe <programble@gmail.com>2018-02-22 17:37:11 -0500
commitd1b098ccfdef418b711d27252aff0f3cf7c31b6f (patch)
tree29f8b05fc3e416294f7a27ec515f350eb09b55f5
parentSleep before truncation (diff)
downloadstream-d1b098ccfdef418b711d27252aff0f3cf7c31b6f.tar.gz
stream-d1b098ccfdef418b711d27252aff0f3cf7c31b6f.zip
Add welcome message to ssh-command
-rw-r--r--ssh-command.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/ssh-command.sh b/ssh-command.sh
index 3a24f68..f91c5b1 100644
--- a/ssh-command.sh
+++ b/ssh-command.sh
@@ -1,12 +1,23 @@
 #!/bin/sh
 set -e -u
 
+SSH_HOST=stream@ascii.town
+
 if [ -z "${SSH_ORIGINAL_COMMAND:-}" ]; then
+    echo
+    echo 'Welcome to Twinch!'
+    echo
+    echo 'To view a public stream, run one of the following commands:'
+    echo
+
     cd public
     for id in *; do
-        echo "ssh -t stream@ascii.town $id"
+        echo "ssh -t $SSH_HOST $id"
     done
+    echo
+
     exit
+
 else
     set $SSH_ORIGINAL_COMMAND
     case $1 in