fix copying of files from mounted dmg

This commit is contained in:
Joey Hess 2013-11-25 13:15:27 -04:00
parent a9f2785b86
commit 88991c4eb2

View file

@ -164,7 +164,12 @@ upgradeToDistribution newdir cleanup distributionfile = do
, Param "-mountroot", File tmpdir
]
sanitycheck tmpdir
installby createLinkOrCopy newdir (tmpdir </> installBase)
void $ boolSystem "cp"
[ Param "-R"
-- Trailing slash to copy directory contents.
, File $ tmpdir ++ "/"
, File newdir
]
void $ boolSystem "hdiutil"
[ Param "eject"
, Param distributionfile