1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-04-26 07:55:21 -04:00
hugo-extended/lib/install.js
Jake Jarvis 2b526bec08
Take over platform/arch detection for more accuracy (#45)
namely for Apple Silicon ARM64 detection on macOS
2021-03-12 10:12:36 -05:00

13 lines
292 B
JavaScript

'use strict';
const bin = require('.');
(async () => {
try {
await bin.run(['version']);
console.log('✔ Hugo installed successfully!');
} catch (error) {
console.error('✖ ERROR: Hugo installation failed. :( Are you sure this platform is supported?\n', error);
}
})();