From 251585f8bc1965f0f34dfed2bab413e33eb1ebdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Kub=C3=AD=C4=8Dek?= Date: Fri, 15 Nov 2024 20:21:47 +0100 Subject: [PATCH] Update pi-gen-config.ts os x tmp fix --- src/pi-gen-config.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/pi-gen-config.ts b/src/pi-gen-config.ts index dce24b3..a0c88b0 100644 --- a/src/pi-gen-config.ts +++ b/src/pi-gen-config.ts @@ -110,20 +110,6 @@ export async function validateConfig(config: PiGenConfig): Promise { throw new Error('compression-level must be between 0 and 9 (or 9e for xz)') } - const cutCmd = await io.which('cut', true) - const supportedLocales = ( - await exec.getExecOutput( - cutCmd, - ['-d', ' ', '-f1', '/usr/share/i18n/SUPPORTED'], - {silent: true} - ) - ).stdout.split('\n') - if (!supportedLocales.includes(config.localeDefault)) { - throw new Error( - 'locale is not included in the list of supported locales (retrieved from /usr/share/i18n/SUPPORTED)' - ) - } - if (!config.targetHostname) { throw new Error('hostname must not be empty') }