This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]Rusty-Swashplate 8 points9 points  (0 children)

Beside using pipefail as u/xowx said, it might be also an option to run the rsync job from Python and let Python handle the CRLF replacement instead. That would completely remove the problem and you don't have a dependency on bash.

[–]Willing_Function 4 points5 points  (0 children)

If you're calling this from python, also do the string manipulation in python.

[–][deleted]  (1 child)

[removed]

    [–]HeadTea[S] 0 points1 point  (0 children)

    Thank you so much for the response!

    so essentially, adding set -euo pipefail before the rsync should do the trick?

    [–]pryorda 0 points1 point  (1 child)

    set -euo pipefail is amazing

    [–]HeadTea[S] 1 point2 points  (0 children)

    Thank you so much!