1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-04-26 15:48:29 -04:00

warn if Hugo Extended isn't supported, proceed with downloading vanilla Hugo

This commit is contained in:
Jake Jarvis 2021-10-06 12:45:23 -04:00
parent 102d7a7ca7
commit 41665fd003
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39

View File

@ -35,6 +35,11 @@ async function installHugo() {
throw new Error(`Are you sure this platform is supported? See: https://github.com/gohugoio/hugo/releases/tag/v${version}`);
}
// warn if platform doesn't support Hugo Extended, proceed with vanilla Hugo
if (!releaseFile.startsWith("hugo_extended_")) {
console.warn(chalk.yellow(" Hugo Extended isn't supported on this platform, downloading vanilla Hugo instead."));
}
const download = await downloader(
`${downloadBaseUrl}${releaseFile}`,
`${downloadBaseUrl}${checksumFile}`,