Skip to content

Commit

Permalink
Merge pull request #942 from ljli/master
Browse files Browse the repository at this point in the history
copyFile can't handle directories
  • Loading branch information
snoyberg committed Sep 7, 2015
2 parents d01bd9a + e4bc352 commit 51ac1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stack/Build/Execute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ singleBuild runInBase ac@ActionContext {..} ee@ExecuteEnv {..} task@Task {..} in
liftIO $ forM_ exes $ \exe -> do
D.createDirectoryIfMissing True bindir
let dst = bindir FP.</> FP.takeFileName exe
createLink exe dst `catchIO` \_ -> D.copyFile exe bindir
createLink exe dst `catchIO` \_ -> D.copyFile exe dst

-- Find the package in the database
wc <- getWhichCompiler
Expand Down

0 comments on commit 51ac1bf

Please sign in to comment.