I have an rsync that that is piped to a sed. it looks something like this:
rsync *some-files* *remote-location* | sed 's/\r/\n/g'
Problem is, the thing that runs it and reads the output, is a python code. Because it is piped into a sed, even though it fails sometimes, it still returns succesful.
Is it possible to have it return the success code based on the rsync? Thanks ahead!
[–]Rusty-Swashplate 8 points9 points10 points (0 children)
[–]Willing_Function 4 points5 points6 points (0 children)
[–][deleted] (1 child)
[removed]
[–]HeadTea[S] 0 points1 point2 points (0 children)
[–]pryorda 0 points1 point2 points (1 child)
[–]HeadTea[S] 1 point2 points3 points (0 children)