osx build fix

This commit is contained in:
Joey Hess 2020-08-07 12:59:47 -04:00
parent 93d0abaaa6
commit 1c13745112
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 1 additions and 2 deletions

View file

@ -7,7 +7,6 @@
module Build.OSXMkLibs (mklibs) where module Build.OSXMkLibs (mklibs) where
import System.Environment (getArgs)
import Data.Maybe import Data.Maybe
import System.FilePath import System.FilePath
import Control.Monad import Control.Monad

View file

@ -135,7 +135,7 @@ installMagic topdir = getEnv "OSX_MAGIC_FILE" >>= \case
Just f -> do Just f -> do
let mdir = topdir </> "magic" let mdir = topdir </> "magic"
createDirectoryIfMissing True mdir createDirectoryIfMissing True mdir
unlessM (boolSystem "cp" [File f, File mdir </> "magic.mgc") $ unlessM (boolSystem "cp" [File f, File mdir </> "magic.mgc"]) $
error "cp failed" error "cp failed"
#else #else
installMagic topdir = do installMagic topdir = do