Fix formatting of generated script to ensure proper command execution

This commit is contained in:
gbuomprisco
2025-05-09 22:46:47 +08:00
parent de347005b1
commit 66184b22b6

View File

@@ -94,7 +94,7 @@ function setupPreCommit(params: { setupHealthCheck: boolean }) {
: ``;
const licenseCommand = `pnpm run --filter scripts license`;
const fileContent = `#!/bin/bash\n${healthCheckCommands}${licenseCommand}`;
const fileContent = `#!/bin/bash\n${healthCheckCommands}\n${licenseCommand}`;
// write file
execSync(`echo "${fileContent}" > ${filePath}`, {