Shell Script Step - What is '\r'?

The ‘\r’ is the carriage return character that is used in Windows. Inserting or copying over code that contains ‘\r’ into a bash script step might not be evident until you’ve run your shell script step in a pipeline with ‘\r’ showing up or simply getting some unexpected results

Inspecting your pipeline and removing any unintended ‘\r’ characters from the shell script step should fix your issue

An example with an external editor that shows carriage returns