beauraines / server_backup

Scripts to backup ubuntu servers which include subversion repositories, MySQL databases, websites and minecraft.
2 stars 0 forks source link

Handle piped failures properly #18

Open beauraines opened 5 years ago

beauraines commented 5 years ago

set -o pipefail

OR

check $PIPESTATUS in the rcCheck function...

https://unix.stackexchange.com/questions/14270/get-exit-status-of-process-thats-piped-to-another

But I've had a problem making the latter work on OS X

beauraines commented 5 years ago

Works great on linux, though ¯_(ツ)_/¯