Made sure color chroot function returned shell exit status and not trigger error within that function
This commit is contained in:
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…
Reference in New Issue
Block a user