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() { chroot() {
local retval local retval
true ${blue} true ${blue}
/usr/sbin/chroot "$@" /usr/sbin/chroot "$@" && { retval=$?; true; } || { retval=$?; true; }
retval=$?
true ${reset} true ${reset}
return $retval return $retval
} }