Skip to content

Commit

Permalink
Update pi-gen-config.ts
Browse files Browse the repository at this point in the history
os x tmp fix
  • Loading branch information
kubicek authored Nov 15, 2024
1 parent 90fda59 commit 251585f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/pi-gen-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,6 @@ export async function validateConfig(config: PiGenConfig): Promise<void> {
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')
}
Expand Down

0 comments on commit 251585f

Please sign in to comment.