2013-02-13 18:30:04 +00:00
|
|
|
{- /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
|
2013-02-27 06:39:22 +00:00
|
|
|
#ifndef __ANDROID__
|
2013-02-13 18:30:04 +00:00
|
|
|
shellPath = "/bin/sh"
|
|
|
|
#else
|
|
|
|
shellPath = "/system/bin/sh"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
shebang :: String
|
|
|
|
shebang = "#!" ++ shellPath
|