scripts: sphinx-pre-install: remove unnecessary double check for $cur_version
authorSebastian Muxel <sebastian@muxel.dev>
Tue, 27 Aug 2024 13:32:24 +0000 (15:32 +0200)
committerJonathan Corbet <corbet@lwn.net>
Thu, 5 Sep 2024 20:32:36 +0000 (14:32 -0600)
commit9b8a79f4c1d844d52273a31bc6511fa8ab5e8669
tree39d510884f100b8096538463ad4aede4208ec1b4
parentbc6cb62007fd6e321385d2df6fae3c38b53c0a82
scripts: sphinx-pre-install: remove unnecessary double check for $cur_version

$cur_version is currently being tested twice with the first test
resulting in an unhelpful "$sphinx returned an error", not continuing to
the more helpful "$sphinx didn't return its version".

This patch removes the first test to return the more useful message.

Fixes: a8b380c379ef ("scripts: sphinx-pre-install: only ask to activate valid venvs")
Signed-off-by: Sebastian Muxel <sebastian@muxel.dev>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240827133224.160776-1-sebastian@muxel.dev
scripts/sphinx-pre-install