f40180f033
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.
20 lines
333 B
Haskell
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
|