summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-10-16 10:28:13 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-10-16 10:28:13 -0400
commit2793def21b17b8e1ba5730dc970dc7f825cbc0cb (patch)
tree8a6af730c0b03977ea48ee2cb5f731e03c8e3781 /Build
parentbd2e72739a1fb9f3a3921a9ae1857aaa7b7b9dba (diff)
Work around sed output difference that led to version containing a newline on OSX.
Diffstat (limited to 'Build')
-rw-r--r--Build/Version.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/Version.hs b/Build/Version.hs
index 98e0dbfd2..e34237e5b 100644
--- a/Build/Version.hs
+++ b/Build/Version.hs
@@ -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/'"
] ""