#!/bin/sh set -e -u if [ -z "${SSH_ORIGINAL_COMMAND:-}" ]; then cd public for id in *; do echo "ssh -t stream@ascii.town $id" done exit else set $SSH_ORIGINAL_COMMAND case $1 in ingest) exec ingest private/${2##*/} ;; view) exec view public/${2##*/} ;; *) exec view public/${1##*/} ;; esac fi