summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoru <u@billy>2023-05-29 05:13:26 -0400
committeru <u@billy>2023-05-29 05:13:26 -0400
commit8dd64a007bbbb20596c90e4c6fd864c2232acee3 (patch)
tree5d5e782a78237c44234ba16f764f321d2140949b /src
parent07f5b33ffec4911e67ea718033a7c2506ee88dfe (diff)
move constants to top
Diffstat (limited to 'src')
-rw-r--r--src/endofossil8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/endofossil b/src/endofossil
index f645e9c..964ff90 100644
--- a/src/endofossil
+++ b/src/endofossil
@@ -1,6 +1,10 @@
1#!/bin/bash 1#!/bin/bash
2set -e -o pipefail 2set -e -o pipefail
3 3
4declare -a shared_paths
5shared_paths=("$homedir"/./src /srv/./src /usr/./src /usr/local/./src)
6require_extension=.fossil
7
4IFS=/ read n pid uid <<< "$1" 8IFS=/ read n pid uid <<< "$1"
5[ "$pid" ] 9[ "$pid" ]
6 10
@@ -30,10 +34,6 @@ do
30done < <(ssh-keygen -f <(printf '%s\n' "$keytype $keyvalue") -r .) 34done < <(ssh-keygen -f <(printf '%s\n' "$keytype $keyvalue") -r .)
31[ "$keyhash" ] 35[ "$keyhash" ]
32 36
33declare -a shared_paths
34shared_paths=("$homedir"/./src /srv/./src /usr/./src /usr/local/./src)
35require_extension=.fossil
36
37case "$SSH_ORIGINAL_COMMAND" in 37case "$SSH_ORIGINAL_COMMAND" in
38 *\"* ) exit 1 ;; 38 *\"* ) exit 1 ;;
39 fossil\ test-http\ * ) 39 fossil\ test-http\ * )