summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/Version.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/Version.hs b/Build/Version.hs
index d2fbe6e0f..44b2b975b 100644
--- a/Build/Version.hs
+++ b/Build/Version.hs
@@ -20,7 +20,7 @@ type Version = String
{- Set when making an official release. (Distribution vendors should set
- this too.) -}
isReleaseBuild :: IO Bool
-isReleaseBuild = isJust <$> catchMaybeIO (getEnv "RELEASE_BUILD")
+isReleaseBuild = (== Just "1") <$> catchMaybeIO (getEnv "RELEASE_BUILD")
{- Version is usually based on the major version from the changelog,
- plus the date of the last commit, plus the git rev of that commit.