Ensure trimmed output

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax committed 2021-07-01 17:02:30 +02:00
1 parent 33dc2d98dd
commit 3393b5e7fd
2 files changed
+4 -4

No files matched your search

Generated Vendored
+2 -2
View File
@@ -62,9 +62,9 @@ function getVersion() {
})
.then(res => {
if (res.stderr.length > 0 && res.exitCode != 0) {
throw new Error(res.stderr);
throw new Error(res.stderr.trim());
}
return parseVersion(res.stdout);
return parseVersion(res.stdout.trim());
});
});
}
+2 -2
View File
@@ -23,9 +23,9 @@ export async function getVersion(): Promise<string> {
})
.then(res => {
if (res.stderr.length > 0 && res.exitCode != 0) {
throw new Error(res.stderr);
throw new Error(res.stderr.trim());
}
return parseVersion(res.stdout);
return parseVersion(res.stdout.trim());
});
}