From 66184b22b6c169fbae7d7e33842c5c64916f768a Mon Sep 17 00:00:00 2001 From: gbuomprisco Date: Fri, 9 May 2025 22:46:47 +0800 Subject: [PATCH] Fix formatting of generated script to ensure proper command execution --- turbo/generators/templates/setup/generator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbo/generators/templates/setup/generator.ts b/turbo/generators/templates/setup/generator.ts index 7e415b977..7e6fca182 100644 --- a/turbo/generators/templates/setup/generator.ts +++ b/turbo/generators/templates/setup/generator.ts @@ -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}`, {