Bug Fix: Method to get piped command exit status in bash
Brought to you by:
kwidholm
In function fixPermissions(). I am seeing this code snippet and comment.
diskutil repairPermissions / | tee -a "$LOGFILE"
wait
To overcome this, you could either use "set -o pipefail" or ${PIPESTATUS[0]}
REF: http://tldp.org/LDP/abs/html/internalvariables.html#PIPESTATUSREF
-Logu
Hello Logu. I appreciate the help very much.