We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5164ca9 commit 926ca24Copy full SHA for 926ca24
shell/cdba-shell
100644
100755
@@ -1,10 +1,10 @@
1
#!/bin/sh
2
3
-user=$1
+export CDBA_USER="$1"
4
cmd=${SSH_ORIGINAL_COMMAND%% *}
5
6
if [ "$cmd" = "git-upload-pack" -o "$cmd" = "git-receive-pack" ]; then
7
- if grep -Fxq $user $HOME/admins ; then
+ if grep -Fxq $CDBA_USER $HOME/admins ; then
8
exec sh -c "$SSH_ORIGINAL_COMMAND"
9
fi
10
0 commit comments