use ~/.ssh/git-annex-shell wrapper

This was needed for the OSX self-contained app, but is a generally good
idea. It avoids needing perl; is probably faster; and could eventually
be replaced by something faster yet.
This commit is contained in:
Joey Hess 2012-09-26 18:59:18 -04:00
parent 0af20bded4
commit 3979086035
3 changed files with 28 additions and 5 deletions

View file

@ -47,7 +47,8 @@ ensureInstalled = do
let content = unlines
[ "#!/bin/sh"
, "set -e"
, "exec", base </> "runshell" ++ " git-annex-shell \"$@\""
, "exec", base </> "runshell" ++
" git-annex-shell -c \"$SSH_ORIGINAL_COMMAND\""
]
curr <- catchDefaultIO "" $ readFile shim
when (curr /= content) $ do