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.
This commit is contained in:
parent
8c66801c78
commit
f40180f033
5 changed files with 32 additions and 7 deletions
10
Init.hs
10
Init.hs
|
@ -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 ."
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue