fix use of wrong shebang when android is installing git-annex-shell wrapper on server

This commit is contained in:
Joey Hess 2013-05-06 15:58:13 -04:00
parent 2a7d573280
commit 749c197947
5 changed files with 15 additions and 9 deletions

View file

@ -63,7 +63,7 @@ ensureInstalled = go =<< standaloneAppBase
let runshell var = "exec " ++ base </> "runshell" ++
" git-annex-shell -c \"" ++ var ++ "\""
let content = unlines
[ shebang
[ shebang_local
, "set -e"
, "if [ \"x$SSH_ORIGINAL_COMMAND\" != \"x\" ]; then"
, runshell "$SSH_ORIGINAL_COMMAND"