Made sure color chroot function returned shell exit status and not trigger error within that function

This commit is contained in:
Jason Mehring 2014-11-10 10:47:27 -05:00
parent 55d06dc83d
commit 2838225f44

View File

@ -67,8 +67,7 @@ if [ "${VERBOSE}" -ge 2 -o "${DEBUG}" == "1" ]; then
chroot() {
local retval
true ${blue}
/usr/sbin/chroot "$@"
retval=$?
/usr/sbin/chroot "$@" && { retval=$?; true; } || { retval=$?; true; }
true ${reset}
return $retval
}