Skip to content

fix: write ModelTrainer train script with LF line endings#5843

Open
JocelynBmnr wants to merge 2 commits into
aws:masterfrom
JocelynBmnr:fix-modeltrainer-sm-train-lf-line-endings
Open

fix: write ModelTrainer train script with LF line endings#5843
JocelynBmnr wants to merge 2 commits into
aws:masterfrom
JocelynBmnr:fix-modeltrainer-sm-train-lf-line-endings

Conversation

@JocelynBmnr
Copy link
Copy Markdown

Description

ModelTrainer generates sm_train.sh, which is executed inside Linux training containers.

On Windows, writing this generated shell script with platform-default text-mode newline handling can produce CRLF (\r\n) line endings. Linux shell execution expects LF (\n) line endings, so generated shell scripts intended for Linux containers should be written with explicit LF newlines.

This change writes the generated train script with newline="\n" to avoid Windows-specific CRLF line endings.

This mirrors the existing fix pattern used elsewhere in the SDK for generated shell scripts executed in Linux containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant