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

pull/1/head
Jason Mehring 10 years ago
parent 55d06dc83d
commit 2838225f44

@ -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
}

Loading…
Cancel
Save