fix executable permissions

sh at least does not default to having a write bit
This commit is contained in:
Joey Hess 2012-12-09 12:15:24 -04:00
parent 76b7ab0b35
commit 1c2da18b0b

View file

@ -62,6 +62,7 @@ otool appbase libmap = do
unprocessed s = not ("@executable_path" `isInfixOf` s)
process c [] m = return (nub $ concat c, m)
process c (file:rest) m = do
_ <- boolSystem "chmod" [Param "755", File file]
libs <- filter unprocessed . parseOtool
<$> readProcess "otool" ["-L", file]
m' <- install_name_tool file libs m