fix: Conditionally add set -eEuo pipefail in setup-github command (#8550)

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
This commit is contained in:
Smetalo
2025-12-02 01:31:12 +01:00
committed by GitHub
parent d24e5cf353
commit 98d7238ed6
2 changed files with 78 additions and 15 deletions

View File

@@ -251,7 +251,9 @@ export const setupGithubCommand: SlashCommand = {
// Print out a message
const commands = [];
commands.push('set -eEuo pipefail');
if (process.platform !== 'win32') {
commands.push('set -eEuo pipefail');
}
commands.push(
`echo "Successfully downloaded ${GITHUB_WORKFLOW_PATHS.length} workflows , ${GITHUB_COMMANDS_PATHS.length} commands and updated .gitignore. Follow the steps in ${readmeUrl} (skipping the /setup-github step) to complete setup."`,
);