summaryrefslogtreecommitdiff
path: root/examples/caretaker-shell
diff options
context:
space:
mode:
Diffstat (limited to 'examples/caretaker-shell')
-rwxr-xr-xexamples/caretaker-shell23
1 files changed, 0 insertions, 23 deletions
diff --git a/examples/caretaker-shell b/examples/caretaker-shell
deleted file mode 100755
index ce59a90..0000000
--- a/examples/caretaker-shell
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env zsh
-
-# Change this to your package root
-PKG_ROOT='/home/derf/var/packages_root'
-
-# Change this to the location of your pkglist script (if non-default)
-PKG_LIST=${PKG_ROOT}/pkglist
-
-args=(${(z)SSH_ORIGINAL_COMMAND})
-
-if [[ \
- ( \
- $args[1] == ${PKG_LIST} && \
- $args[2] == ${PKG_ROOT} \
- ) || ( \
- $args[1] == 'git-'(upload|receive)'-pack' && \
- $args[2] != *'../'* && \
- $args[2] == \'${PKG_ROOT}/*\' \
- ) \
-]] {
- args[2]=${args[2]//\'}
- ${args}
-}