Skip to content

Commit

Permalink
Merge pull request #3794 from dwaldhalm/master
Browse files Browse the repository at this point in the history
ease single directory requirement
  • Loading branch information
mgsloan authored Jan 19, 2018
2 parents ceef99a + 0e29784 commit 02edec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stack/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1466,7 +1466,7 @@ expectSingleUnpackedDir :: (MonadIO m, MonadThrow m) => Path Abs File -> Path Ab
expectSingleUnpackedDir archiveFile destDir = do
contents <- listDir destDir
case contents of
([dir], []) -> return dir
([dir], _ ) -> return dir
_ -> throwString $ "Expected a single directory within unpacked " ++ toFilePath archiveFile

-- | Download 7z as necessary, and get a function for unpacking things.
Expand Down

0 comments on commit 02edec9

Please sign in to comment.