fix use of wrong shebang when android is installing git-annex-shell wrapper on server
This commit is contained in:
parent
2a7d573280
commit
749c197947
5 changed files with 15 additions and 9 deletions
|
@ -9,12 +9,18 @@
|
|||
|
||||
module Utility.Shell where
|
||||
|
||||
shellPath :: FilePath
|
||||
shellPath_portable :: FilePath
|
||||
shellPath_portable = "/bin/sh"
|
||||
|
||||
shellPath_local :: FilePath
|
||||
#ifndef __ANDROID__
|
||||
shellPath = "/bin/sh"
|
||||
shellPath_local = shellPath_portable
|
||||
#else
|
||||
shellPath = "/system/bin/sh"
|
||||
shellPath_local = "/system/bin/sh"
|
||||
#endif
|
||||
|
||||
shebang :: String
|
||||
shebang = "#!" ++ shellPath
|
||||
shebang_portable :: String
|
||||
shebang_portable = "#!" ++ shellPath_portable
|
||||
|
||||
shebang_local :: String
|
||||
shebang_local = "#!" ++ shellPath_local
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue