Work around sed output difference that led to version containing a newline on OSX.

This commit is contained in:
Joey Hess 2013-10-16 10:28:13 -04:00
parent 89345b7108
commit ecb4a30548
2 changed files with 3 additions and 1 deletions

View file

@ -32,7 +32,7 @@ getVersion = do
( return changelogversion
, catchDefaultIO changelogversion $ do
let major = takeWhile (/= '.') changelogversion
autoversion <- readProcess "sh"
autoversion <- takeWhile isAlphaNum <$> readProcess "sh"
[ "-c"
, "git log -n 1 --format=format:'%ci %h'| sed -e 's/-//g' -e 's/ .* /-g/'"
] ""