diff options
author | Joey Hess <joey@kitenet.net> | 2013-02-13 14:30:04 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-02-13 14:30:04 -0400 |
commit | 86a2e79338c13108e100859a942883690ad286f3 (patch) | |
tree | 375323fc282638ae62b8b8a0b8834b6dbdf92d18 /Init.hs | |
parent | 9aadec552b0590fbed10ed9e1d74540bbaf5fb7f (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 'Init.hs')
-rw-r--r-- | Init.hs | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -21,6 +21,7 @@ import Logs.UUID import Annex.Version import Annex.UUID import Utility.UserInfo +import Utility.Shell genDescription :: Maybe String -> Annex String genDescription (Just d) = return d @@ -92,7 +93,8 @@ preCommitHook :: Annex FilePath preCommitHook = (</>) <$> fromRepo Git.localGitDir <*> pure "hooks/pre-commit" preCommitScript :: String -preCommitScript = - "#!/bin/sh\n" ++ - "# automatically configured by git-annex\n" ++ - "git annex pre-commit .\n" +preCommitScript = unlines + [ shebang + , "# automatically configured by git-annex" + , "git annex pre-commit ." + ] |