From 1c137451127b98f766ec6abe15d7184bc6e9a0c5 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 7 Aug 2020 12:59:47 -0400 Subject: [PATCH] osx build fix --- Build/OSXMkLibs.hs | 1 - Build/Standalone.hs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Build/OSXMkLibs.hs b/Build/OSXMkLibs.hs index 8f577855b9..72b5d0156d 100644 --- a/Build/OSXMkLibs.hs +++ b/Build/OSXMkLibs.hs @@ -7,7 +7,6 @@ module Build.OSXMkLibs (mklibs) where -import System.Environment (getArgs) import Data.Maybe import System.FilePath import Control.Monad diff --git a/Build/Standalone.hs b/Build/Standalone.hs index e4a3aa8663..22bc913dd3 100644 --- a/Build/Standalone.hs +++ b/Build/Standalone.hs @@ -135,7 +135,7 @@ installMagic topdir = getEnv "OSX_MAGIC_FILE" >>= \case Just f -> do let mdir = topdir "magic" createDirectoryIfMissing True mdir - unlessM (boolSystem "cp" [File f, File mdir "magic.mgc") $ + unlessM (boolSystem "cp" [File f, File mdir "magic.mgc"]) $ error "cp failed" #else installMagic topdir = do