You've already forked hugo-extended
mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2026-06-14 14:35:27 -04:00
trim output of hugo version
This commit is contained in:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user