1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-09-15 22:35:31 -04:00

trim output of hugo version

This commit is contained in:
2021-10-19 10:01:15 -04:00
parent c4b08ffb14
commit a5e608e2cf
3 changed files with 12 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ export function getBinFilename() {
// "hugo v0.88.1-5BC54738+extended darwin/arm64 BuildDate=..."
export function getBinVersion(bin) {
const stdout = execFileSync(bin, ["version"]);
return stdout.toString();
return stdout.toString().trim();
}
// Hugo Extended supports: macOS x64, macOS ARM64, Linux x64, Windows x64.