Work around sed output difference that led to version containing a newline on OSX.
This commit is contained in:
parent
89345b7108
commit
ecb4a30548
2 changed files with 3 additions and 1 deletions
|
@ -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/'"
|
||||
] ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue