summaryrefslogtreecommitdiff
path: root/src/Command/Extract.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Command/Extract.hs')
-rw-r--r--src/Command/Extract.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Command/Extract.hs b/src/Command/Extract.hs
index cc92587..b21c63c 100644
--- a/src/Command/Extract.hs
+++ b/src/Command/Extract.hs
@@ -14,6 +14,7 @@ import System.FilePath
import Command
import Eval
+import Job
import Job.Types
@@ -103,4 +104,4 @@ cmdExtract (ExtractCommand ExtractOptions {..} ExtractArguments {..}) = do
liftIO (doesPathExist tpath) >>= \case
True -> tfail $ "destination ‘" <> T.pack tpath <> "’ already exists"
False -> return ()
- liftIO $ copyFile (adir </> afile) tpath
+ liftIO $ copyRecursiveForce (adir </> afile) tpath