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:
parent
0af20bded4
commit
3979086035
3 changed files with 28 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue