summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers+gitlab@digital-scurf.org>2021-12-11 06:45:34 +0000
committerDaniel Silverstone <dsilvers+gitlab@digital-scurf.org>2021-12-11 06:45:34 +0000
commite8082fef03bd04042dad3fb2d0513587c54874ab (patch)
tree2115ecd5b0c121356693cbaefed13509e2e19dc3 /check
parent826a78924bbed1bfd0e17a869a11ccf3d320bb9b (diff)
parenta5858f2dc142411d7acc5b4a9f84b786a5082eb5 (diff)
downloadsubplot-e8082fef03bd04042dad3fb2d0513587c54874ab.tar.gz
Merge branch 'tidyup' into 'main'
tidy ups See merge request subplot/subplot!241
Diffstat (limited to 'check')
-rwxr-xr-xcheck6
1 files changed, 5 insertions, 1 deletions
diff --git a/check b/check
index ac19c5f..cb5ffc1 100755
--- a/check
+++ b/check
@@ -107,7 +107,11 @@ class Runcmd:
def got_cargo(self, subcommand):
"""Is a cargo subcommand available?"""
p = self.runcmd(["cargo", "--list"], check=True, stdout=PIPE)
- lines = [line.strip() for line in p.stdout.decode("UTF-8").splitlines()]
+ lines = [
+ line.split()[0]
+ for line in p.stdout.decode("UTF-8").splitlines()
+ if line.strip()
+ ]
return subcommand in lines
def codegen(self, md, output, **kwargs):