mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2026-10-04 14:25:39 -04:00
trim output of hugo version
This commit is contained in:
3 files changed
+12
-12
No files matched your search
+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