diff options
author | June McEnroe <programble@gmail.com> | 2018-02-22 17:37:11 -0500 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2018-02-22 17:37:11 -0500 |
commit | d1b098ccfdef418b711d27252aff0f3cf7c31b6f (patch) | |
tree | 29f8b05fc3e416294f7a27ec515f350eb09b55f5 | |
parent | Sleep before truncation (diff) | |
download | stream-d1b098ccfdef418b711d27252aff0f3cf7c31b6f.tar.gz stream-d1b098ccfdef418b711d27252aff0f3cf7c31b6f.zip |
Add welcome message to ssh-command
Diffstat (limited to '')
-rw-r--r-- | ssh-command.sh | 13 |
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 |