From d1b098ccfdef418b711d27252aff0f3cf7c31b6f Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 22 Feb 2018 17:37:11 -0500 Subject: Add welcome message to ssh-command --- ssh-command.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1 r>dontfiles
summary refs log tree commit diff
path: root/bin/1sh/1sh-kill.1 (unfollow)
Commit message (Expand)Author
2019-09-05Add titleJune McEnroe
2019-09-04Add Avorter n'est pas tuerJune McEnroe
2019-08-29Unset executable on shell scriptsJune McEnroe
2019-08-29Add long-missing setopt to bin.7June McEnroe
2019-08-29Add editJune McEnroe