git-annex/Utility/Shell.hs
Joey Hess f40180f033 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.
2013-02-13 14:30:04 -04:00

20 lines
333 B
Haskell

{- /bin/sh handling
-
- Copyright 2013 Joey Hess <joey@kitenet.net>
-
- Licensed under the GNU GPL version 3 or higher.
-}
{-# LANGUAGE CPP #-}
module Utility.Shell where
shellPath :: FilePath
#ifndef WITH_ANDROID
shellPath = "/bin/sh"
#else
shellPath = "/system/bin/sh"
#endif
shebang :: String
shebang = "#!" ++ shellPath