Skip to content

Commit

Permalink
Fixed check in case multiple gems are installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuereth committed May 11, 2012
1 parent 44ecdfd commit 3b45049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ com.jsuereth.sbtsite.SiteKeys.siteMappings <<= (com.jsuereth.sbtsite.SiteKeys.si
case None => error(gem + " not installed.")
case Some(m) =>
val v = m.group(1)
if(v == version) () else error("%s %s required, but %s was found.".format(gem, version, v))
if(v contains version) () else error("%s %s required, but %s was found.".format(gem, version, v))
}
}
checkVersion("jekyll", "0.11.2")
Expand Down

0 comments on commit 3b45049

Please sign in to comment.