aboutsummaryrefslogtreecommitdiff
path: root/Assistant/Install.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-02-13 14:30:04 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-02-13 14:30:04 -0400
commit86a2e79338c13108e100859a942883690ad286f3 (patch)
tree375323fc282638ae62b8b8a0b8834b6dbdf92d18 /Assistant/Install.hs
parent9aadec552b0590fbed10ed9e1d74540bbaf5fb7f (diff)
deal with Android's nonstandard shell location
This is so gratutious and pointless. It's a shame that everything we learned about Unix portability and the importance of standards has been thrown out the window by these guys.
Diffstat (limited to 'Assistant/Install.hs')
-rw-r--r--Assistant/Install.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Assistant/Install.hs b/Assistant/Install.hs
index 989843e90..0db021ef7 100644
--- a/Assistant/Install.hs
+++ b/Assistant/Install.hs
@@ -14,6 +14,7 @@ import Assistant.Install.AutoStart
import Assistant.Ssh
import Locations.UserConfig
import Utility.FileMode
+import Utility.Shell
#ifdef darwin_HOST_OS
import Utility.OSX
@@ -58,7 +59,7 @@ ensureInstalled = go =<< standaloneAppBase
sshdir <- sshDir
let shim = sshdir </> "git-annex-shell"
let content = unlines
- [ "#!/bin/sh"
+ [ shebang
, "set -e"
, "exec", base </> "runshell" ++
" git-annex-shell -c \"$SSH_ORIGINAL_COMMAND\""