From c6267a7306cdd69ab13cd8f24414113a655341c8 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 22 Feb 2018 16:06:34 -0500 Subject: Rename command to ssh-command --- ssh-command.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ssh-command.sh (limited to 'ssh-command.sh') diff --git a/ssh-command.sh b/ssh-command.sh new file mode 100644 index 0000000..333ca44 --- /dev/null +++ b/ssh-command.sh @@ -0,0 +1,9 @@ +#!/bin/sh +set -e -u + +set $SSH_ORIGINAL_COMMAND +case $1 in + view) exec view public/${2##*/} ;; + ingest) exec ingest private/${2##*/} ;; + *) exec view public/${1##*/} ;; +esac -- cgit 1.4.1